public final class RobotDeathEvent extends Event
onRobotDeath()
when another robot (not your robot) dies.Constructor and Description |
---|
RobotDeathEvent(String robotName)
Called by the game to create a new RobotDeathEvent.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the robot that died.
|
String |
getRobotName()
Deprecated.
Use
getName() instead. |
compareTo, getPriority, getTime, setPriority, setTime
public RobotDeathEvent(String robotName)
robotName
- the name of the robot that diedpublic String getName()
@Deprecated public String getRobotName()
getName()
instead.Copyright © 2021 Robocode. All Rights Reserved.