holoracer.vehicles
Class Vehicle
java.lang.Object
holoracer.GameObject
holoracer.vehicles.Vehicle
- All Implemented Interfaces:
- I3DObject
- Direct Known Subclasses:
- EnemyVehicle, PlayersVehicle
public abstract class Vehicle
- extends GameObject
- implements I3DObject
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TURN_SPEED
public static final float TURN_SPEED
- See Also:
- Constant Field Values
ACC
public static final float ACC
- See Also:
- Constant Field Values
RAD
public static final float RAD
- See Also:
- Constant Field Values
speed
protected float speed
highest_speed
protected float highest_speed
last_tile
protected TrackTile last_tile
model
protected Model model
vehicles
public static java.util.ArrayList vehicles
lean_lr
protected int lean_lr
Vehicle
public Vehicle()
calcPositions
public static void calcPositions()
- Todo - make this correct
getPosition
public int getPosition()
- Todo - store this so we don't calc it every time!
- Returns:
getSpeedAsInt
public int getSpeedAsInt()
getHighestSpeedAsInt
public int getHighestSpeedAsInt()
leanLeft
public void leanLeft()
leanRight
public void leanRight()
leanCentre
public void leanCentre()
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
accelerate
public void accelerate(float acc)
stopAccelerating
public void stopAccelerating()
getTrackTile
protected TrackTile getTrackTile()
getXAsInt
public int getXAsInt()