Package robocode
Class RobotDeathEvent
- java.lang.Object
-
- robocode.Event
-
- robocode.RobotDeathEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Event>
public final class RobotDeathEvent extends Event
This event is sent toonRobotDeath()when another robot (not your robot) dies.- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RobotDeathEvent(java.lang.String robotName)Called by the game to create a new RobotDeathEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of the robot that died.java.lang.StringgetRobotName()Deprecated.UsegetName()instead.-
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the robot that died.- Returns:
- the name of the robot that died
-
getRobotName
@Deprecated public java.lang.String getRobotName()
Deprecated.UsegetName()instead.- Returns:
- the name of the robot that died
-
-