public class RoundStartedEvent extends BattleEvent
onRoundStarted()
when a new round in a battle is started.IBattleListener
,
RoundEndedEvent
Constructor | Description |
---|---|
RoundStartedEvent(ITurnSnapshot startSnapshot,
int round) |
Called by the game to create a new RoundStartedEvent.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getRound() |
Returns the round number.
|
ITurnSnapshot |
getStartSnapshot() |
Returns the start snapshot of the participating robots, initial starting positions etc.
|
public RoundStartedEvent(ITurnSnapshot startSnapshot, int round)
startSnapshot
- the start snapshot of the participating robots, initial starting positions etc.round
- the round number (zero indexed).public ITurnSnapshot getStartSnapshot()
ITurnSnapshot
that serves as the start snapshot of
the round.public int getRound()
Copyright © 2018. All rights reserved.