public class RoundStartedEvent extends BattleEvent
onRoundStarted() when a new round in a battle is started.IBattleListener,
RoundEndedEvent| Constructor and Description |
|---|
RoundStartedEvent(ITurnSnapshot startSnapshot,
int round,
List<IBasicRobot> robotObjects)
Called by the game to create a new RoundStartedEvent.
|
| Modifier and Type | Method and Description |
|---|---|
List<IBasicRobot> |
getRobotObjects() |
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, List<IBasicRobot> robotObjects)
startSnapshot - the start snapshot of the participating robots, initial starting positions etc.round - the round number (zero indexed).robotObjects - instances of robots for integration testingpublic ITurnSnapshot getStartSnapshot()
ITurnSnapshot that serves as the start snapshot of
the round.public int getRound()
public List<IBasicRobot> getRobotObjects()
Copyright © 2021 Robocode. All Rights Reserved.