robocode
Class RobotDeathEvent
java.lang.Object
|
+--robocode.Event
|
+--robocode.RobotDeathEvent
- All Implemented Interfaces:
- Comparable
- public class RobotDeathEvent
- extends Event
This event is sent to onRobotDeath
when another robot (not you) dies.
Constructor Summary |
RobotDeathEvent(String robotName)
Called by the game to create a new RobotDeathEvent. |
RobotDeathEvent
public RobotDeathEvent(String robotName)
- Called by the game to create a new RobotDeathEvent.
getName
public String getName()
- Returns the name of the robot that died.
- Returns:
- the name of the robot that died.
getRobotName
public String getRobotName()
- Deprecated. use getName