holoracer
Class Track

java.lang.Object
  extended by holoracer.GameObject
      extended by holoracer.Track
All Implemented Interfaces:
I3DObject

public class Track
extends GameObject
implements I3DObject


Field Summary
 int length
           
static int TRACK_VIEW_LENGTH
           
static int WIDTH
           
 
Fields inherited from class holoracer.GameObject
location, y_angle
 
Constructor Summary
Track()
           
 
Method Summary
 void draw(net.java.games.jogl.GL gl, net.java.games.jogl.GLU glu)
           
 TrackTile getTrackTile(float x, float z)
           
 void process()
           
 boolean shouldBeDrawn()
           
 
Methods inherited from class holoracer.GameObject
moveToPosition, restorePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH

public static final int WIDTH
See Also:
Constant Field Values

TRACK_VIEW_LENGTH

public static final int TRACK_VIEW_LENGTH
See Also:
Constant Field Values

length

public int length
Constructor Detail

Track

public Track()
Method Detail

shouldBeDrawn

public boolean shouldBeDrawn()
Specified by:
shouldBeDrawn in interface I3DObject

draw

public void draw(net.java.games.jogl.GL gl,
                 net.java.games.jogl.GLU glu)
          throws java.io.IOException
Specified by:
draw in interface I3DObject
Throws:
java.io.IOException

process

public void process()
Specified by:
process in class GameObject

getTrackTile

public TrackTile getTrackTile(float x,
                              float z)