|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jbotrace.base.Race
Description: Contains the information for a race.
Constructor Summary | |
Race()
Constructs a new race. |
|
Race(Track track,
java.util.List driverList,
int laps)
Contructs a new race. |
Method Summary | |
java.util.List |
getCarList()
Returns the list of cars running in the race. |
int |
getCarNumber()
Returns the number of cars in this race |
update.Updater |
getDisplayUpdater()
Returns the DisplayUpdater. |
update.Updater |
getNewRaceUpdater()
Returns the newRaceUpdater. |
java.util.List |
getPositionList()
Returns the list with the cars in the current race order |
update.Updater |
getStatisticsUpdater()
Returns the StatisticsUpdater. |
int |
getTime()
Return the current race time |
Track |
getTrack()
Returns the track of the race. |
void |
newRace(Track track,
java.util.List driverList,
int laps)
Resets the race. |
void |
run()
The implementation of Runnable. |
void |
setCarsToStart()
Set cars to start positions. |
void |
setTrack(Track track)
Sets the track. |
void |
startRaceThread()
Start race thread. |
void |
stopRaceThread()
Stop race thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Race()
public Race(Track track, java.util.List driverList, int laps)
Method Detail |
public void newRace(Track track, java.util.List driverList, int laps)
public java.util.List getCarList()
public int getCarNumber()
public update.Updater getDisplayUpdater()
public update.Updater getNewRaceUpdater()
public java.util.List getPositionList()
public update.Updater getStatisticsUpdater()
public int getTime()
public Track getTrack()
public void run()
run
in interface java.lang.Runnable
public void setCarsToStart()
public void setTrack(Track track)
public void startRaceThread()
public void stopRaceThread()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |