robocode.control.events
Class RoundStartedEvent
public class RoundStartedEvent
A RoundStartedEvent is sent to
onRoundStarted() when a new round in a battle is started.
- Pavel Savara (original)
- Flemming N. Larsen (contributor)
RoundStartedEvent
public RoundStartedEvent(ITurnSnapshot startSnapshot,
int round) Creates a new RoundStartedEvent.
startSnapshot - the start snapshot of the participating robots, initial starting positions etc.round - the round number.
getRound
public int getRound()
Returns the round number.
getStartSnapshot
public ITurnSnapshot getStartSnapshot()
Returns the start snapshot of the participating robots, initial starting positions etc.
- a ITurnSnapshot instance that serves as the start snapshot of the round.