|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.Event
public abstract class Event
The superclass of all Robocode events.
| Constructor Summary | |
|---|---|
Event()
Called by the game to create a new Event. |
|
| Method Summary | |
|---|---|
int |
compareTo(Event event)
Compares this event to another event regarding precedence. |
int |
getPriority()
Returns the priority of this event. |
long |
getTime()
Returns the time this 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)
Could be caled by robot to assign the time to events which are not managed by game. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Event()
| Method Detail |
|---|
public int compareTo(Event event)
compareTo in interface java.lang.Comparableevent - the event to compare to this event.
public int getPriority()
public final long getTime()
public final void setPriority(int newPriority)
newPriority - the new priority of this eventAdvancedRobot.setEventPriority(String, int)public void setTime(long newTime)
newTime - the time this event occurred
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||