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()
Car
getColor
in class Car
Car.getColor()
public void initialize()
Car
initialize
in class Car
Car.initialize()
public void move(int lastMoveTime, boolean hitWall, ICar collidedWithCar, ICar hitBySpareTire)
Car
The 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 Car
Car.move(int, boolean, ICar, ICar)