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:
  • Constructor Details

    • 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 Details

    • getTurnSnapshot

      public ITurnSnapshot getTurnSnapshot()
      Returns a snapshot of the turn that has ended.
      Returns:
      a snapshot of the turn that has ended.