|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--robocode.Event
The basic superclass of all Robocode events
Constructor Summary | |
Event()
Called by the game to create a new Event. |
Method Summary | |
int |
compareTo(Object o)
Used for sorting events based on priority and time. |
int |
getPriority()
Returns the priority of the event. |
long |
getTime()
Returns the time the event occurred. |
void |
setPriority(int newPriority)
Called by the game to set the priority of an event to the priority your robot specified for this type of event (or the default priority) |
void |
setTime(long newTime)
Called by the game to set the time an event occurred. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Event()
Method Detail |
public int compareTo(Object o)
compareTo
in interface Comparable
public int getPriority()
public long getTime()
public void setPriority(int newPriority)
AdvancedRobot.setEventPriority(java.lang.String, int)
public void setTime(long newTime)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |