|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrobocode.Event
robocode.RobotDeathEvent
public final class RobotDeathEvent
This event is sent to onRobotDeath()
when another robot (not your robot) dies.
| Constructor Summary | |
|---|---|
RobotDeathEvent(java.lang.String robotName)
Called by the game to create a new RobotDeathEvent. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the robot that died. |
java.lang.String |
getRobotName()
Deprecated. Use RobotDeathEvent.getName() instead. |
| Methods inherited from class robocode.Event |
|---|
compareTo, getPriority, getTime, setPriority, setTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RobotDeathEvent(java.lang.String robotName)
robotName - the name of the robot that died| Method Detail |
|---|
public java.lang.String getName()
@Deprecated public java.lang.String getRobotName()
RobotDeathEvent.getName() instead.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||