|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.control.events.BattleEvent
robocode.control.events.RoundStartedEvent
public class RoundStartedEvent
A RoundStartedEvent is sent to onRoundStarted()
when a new round in a battle is started.
IBattleListener
,
RoundEndedEvent
Constructor Summary | |
---|---|
RoundStartedEvent(ITurnSnapshot startSnapshot,
int round)
Called by the game to create a new RoundStartedEvent. |
Method Summary | |
---|---|
int |
getRound()
Returns the round number. |
ITurnSnapshot |
getStartSnapshot()
Returns the start snapshot of the participating robots, initial starting positions etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoundStartedEvent(ITurnSnapshot startSnapshot, int round)
startSnapshot
- the start snapshot of the participating robots, initial starting positions etc.round
- the round number (zero indexed).Method Detail |
---|
public ITurnSnapshot getStartSnapshot()
ITurnSnapshot
that serves as the start snapshot of
the round.public int getRound()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |