robocode.control.events
Class TurnEndedEvent
java.lang.Object
robocode.control.events.BattleEvent
robocode.control.events.TurnEndedEvent
public class TurnEndedEvent
- extends BattleEvent
A TurnEndedEvent is sent to onTurnEnded()
when the current turn in a battle round is ended.
- Since:
- 1.6.2
- Author:
- Pavel Savara (original), Flemming N. Larsen (contributor)
- See Also:
IBattleListener
,
TurnStartedEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TurnEndedEvent
public TurnEndedEvent(ITurnSnapshot turnSnapshot)
- Called by the game to create a new TurnEndedEvent.
Please don't use this constructor as it might change.
- Parameters:
turnSnapshot
- a snapshot of the turn that has ended.
getTurnSnapshot
public ITurnSnapshot getTurnSnapshot()
- Returns a snapshot of the turn that has ended.
- Returns:
- a snapshot of the turn that has ended.
Copyright © 2013 Robocode. All Rights Reserved.