Package robocode.control.events
Class TurnEndedEvent
java.lang.Object
robocode.control.events.BattleEvent
robocode.control.events.TurnEndedEvent
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:
-
Constructor Summary
ConstructorsConstructorDescriptionTurnEndedEvent
(ITurnSnapshot turnSnapshot) Called by the game to create a new TurnEndedEvent. -
Method Summary
Modifier and TypeMethodDescriptionReturns a snapshot of the turn that has ended.
-
Constructor Details
-
TurnEndedEvent
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 Details
-
getTurnSnapshot
Returns a snapshot of the turn that has ended.- Returns:
- a snapshot of the turn that has ended.
-