Package 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 toonTurnEnded()
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
-
-
Constructor Summary
Constructors Constructor Description TurnEndedEvent(ITurnSnapshot turnSnapshot)
Called by the game to create a new TurnEndedEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITurnSnapshot
getTurnSnapshot()
Returns a snapshot of the turn that has ended.
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
getTurnSnapshot
public ITurnSnapshot getTurnSnapshot()
Returns a snapshot of the turn that has ended.- Returns:
- a snapshot of the turn that has ended.
-
-