RobotDeathEvent (Robocode 1.2.4-Beta API)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## robocode
Class RobotDeathEvent

    java.lang.Object
      robocode.Event
          robocode.RobotDeathEvent

All Implemented Interfaces:
  java.lang.Comparable<Event>

    public class RobotDeathEvent

extends Event

This event is sent to `onRobotDeath` when another robot (not you) dies.

Author:
  Mathew A. Nelson (original)

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 getName

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

### RobotDeathEvent

    public RobotDeathEvent(java.lang.String robotName)

  Called by the game to create a new RobotDeathEvent.

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

    public java.lang.String getRobotName()

  Deprecated. use getName

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD