Package robocode
Class DeathEvent
java.lang.Object
robocode.Event
robocode.DeathEvent
- All Implemented Interfaces:
Serializable
,Comparable<Event>
This event is sent to
onDeath()
when your
robot dies.- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class robocode.Event
compareTo, getTime, setPriority, setTime
-
Constructor Details
-
DeathEvent
public DeathEvent()Called by the game to create a new DeathEvent.
-
-
Method Details
-
getPriority
public final int getPriority()Returns the priority of this event.An event priority is a value from 0 - 99. The higher value, the higher priority.
The default priority is 80, but varies depending on the type of event.
- Overrides:
getPriority
in classEvent
- Returns:
- the priority of this event.
-