Serializable
, Comparable<Event>
public final class StatusEvent extends Event
onStatus()
every
turn in a battle to provide the status of the robot.Constructor | Description |
---|---|
StatusEvent(RobotStatus status) |
This constructor is called internally from the game in order to create
a new
RobotStatus . |
Modifier and Type | Method | 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 © 2018. All rights reserved.