Package robocode
Class StatusEvent
- java.lang.Object
-
- robocode.Event
-
- robocode.StatusEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Event>
public final class StatusEvent extends Event
This event is sent toonStatus()
every turn in a battle to provide the status of the robot.- Since:
- 1.5
- Author:
- Flemming N. Larsen (original)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatusEvent(RobotStatus status)
This constructor is called internally from the game in order to create a newRobotStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RobotStatus
getStatus()
Returns theRobotStatus
at the time defined byRobot.getTime()
.-
Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
-
-
-
Constructor Detail
-
StatusEvent
public StatusEvent(RobotStatus status)
This constructor is called internally from the game in order to create a newRobotStatus
.- Parameters:
status
- the current states
-
-
Method Detail
-
getStatus
public RobotStatus getStatus()
Returns theRobotStatus
at the time defined byRobot.getTime()
.- Returns:
- the
RobotStatus
at the time defined byRobot.getTime()
. - See Also:
Event.getTime()
-
-