Package robocode
Class StatusEvent
java.lang.Object
robocode.Event
robocode.StatusEvent
- All Implemented Interfaces:
Serializable,Comparable<Event>
This event is sent to
onStatus() every
turn in a battle to provide the status of the robot.- Since:
- 1.5
- Author:
- Flemming N. Larsen (original)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusEvent(RobotStatus status) This constructor is called internally from the game in order to create a newRobotStatus. -
Method Summary
Modifier and TypeMethodDescriptionReturns theRobotStatusat the time defined byRobot.getTime().Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
Constructor Details
-
StatusEvent
This constructor is called internally from the game in order to create a newRobotStatus.- Parameters:
status- the current states
-
-
Method Details
-
getStatus
Returns theRobotStatusat the time defined byRobot.getTime().- Returns:
- the
RobotStatusat the time defined byRobot.getTime(). - See Also:
-