java.lang.Object
|
+--com.ibm.rally.Car
|
+--RallyCar
This is the class that you must implement to enable your car within the CodeRally track. Adding code to these methods will give your car it's personality and allow it to compete.
| Fields inherited from class com.ibm.rally.Car |
|---|
CAR_BLUE, CAR_ORANGLE, CAR_PURPLE, CAR_RED, CAR_TEAL, CAR_YELLOW, MAX_CLOCK_TICKS, MAX_STEER_LEFT, MAX_STEER_RIGHT, MAX_THROTTLE, MIN_THROTTLE |
| Method Detail |
public byte getColor()
CargetColor in class CarCar.getColor()public java.lang.String getName()
CargetName in class CarCar.getName()public java.lang.String getSchoolName()
CargetSchoolName in class CarCar.getSchoolName()public void initialize()
Carinitialize in class CarCar.initialize()
public void move(int lastMoveTime,
boolean hitWall,
ICar collidedWithCar,
ICar hitBySpareTire)
CarThe second parameter (hitWall) returns true if your car has just ran into a wall. If your car has collided with another car, the third parameter (collidedWithCar) will return that other car; otherwise this parameter will be null. If you have just been hit by a spare tire from another car, the fourth parameter (hitBySpareTire) returns that other car; otherwise this parameter will be null.
move in class CarCar.move(int, boolean, ICar, ICar)