Package robocode
Class RobotDeathEvent
java.lang.Object
robocode.Event
robocode.RobotDeathEvent
- All Implemented Interfaces:
Serializable
,Comparable<Event>
This event is sent to
onRobotDeath()
when another robot (not your robot) dies.- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRobotDeathEvent
(String robotName) Called by the game to create a new RobotDeathEvent. -
Method Summary
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
Constructor Details
-
RobotDeathEvent
Called by the game to create a new RobotDeathEvent.- Parameters:
robotName
- the name of the robot that died
-
-
Method Details
-
getName
Returns the name of the robot that died.- Returns:
- the name of the robot that died
-
getRobotName
Deprecated.UsegetName()
instead.- Returns:
- the name of the robot that died
-
getName()
instead.