robocode

Class StatusEvent

Implemented Interfaces:
Comparable

public class StatusEvent
extends Event

This event is sent to onStatus(StatusEvent) every turn in a battle.
Author:
Flemming N. Larsen (original)
Since:
1.5

Constructor Summary

StatusEvent(robocode.peer.RobotPeer robotPeer)
This constructor is called internally from the game in order to create a new RobotStatus.

Method Summary

RobotStatus
getStatus()
Returns the RobotStatus at the time defined by Robot.getTime().

Methods inherited from class robocode.Event

compareTo, getPriority, getTime, setPriority, setTime

Constructor Details

StatusEvent

public StatusEvent(robocode.peer.RobotPeer robotPeer)
Parameters:
robotPeer - the RobotPeer containing the current states

Method Details

getStatus

public RobotStatus getStatus()
Returns the RobotStatus at the time defined by Robot.getTime().
Returns:
the RobotStatus at the time defined by Robot.getTime().
See Also:
getTime()