public final class StatusEvent extends Event
onStatus()
every
turn in a battle to provide the status of the robot.Constructor and Description |
---|
StatusEvent(RobotStatus status)
This constructor is called internally from the game in order to create
a new
RobotStatus . |
Modifier and Type | Method and Description |
---|---|
RobotStatus |
getStatus()
Returns the
RobotStatus at the time defined by Robot.getTime() . |
compareTo, getPriority, getTime, setPriority, setTime
public StatusEvent(RobotStatus status)
RobotStatus
.status
- the current statespublic RobotStatus getStatus()
RobotStatus
at the time defined by Robot.getTime()
.RobotStatus
at the time defined by Robot.getTime()
.Event.getTime()
Copyright © 2021 Robocode. All Rights Reserved.