Class TickEvent

java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.TickEvent
All Implemented Interfaces:
IEvent

public final class TickEvent extends BotEvent
Event occurring whenever a new turn in a round has started.
  • Constructor Details Link icon

    • TickEvent Link icon

      public TickEvent(int turnNumber, int roundNumber, BotState botState, Collection<BulletState> bulletStates, Collection<BotEvent> events)
      Initializes a new instance of the TickEvent class.
      Parameters:
      turnNumber - is the current turn number in the battle.
      roundNumber - is the current round number in the battle.
      botState - is the current state of this bot.
      bulletStates - is the current state of the bullets fired by this bot.
      events - is the events occurring in the turn relevant for this bot.
  • Method Details Link icon

    • getRoundNumber Link icon

      public int getRoundNumber()
      Returns the current round number.
      Returns:
      The current round number.
    • getBotState Link icon

      public BotState getBotState()
      Returns the current state of this bot.
      Returns:
      The current state of this bot.
    • getBulletStates Link icon

      public Collection<BulletState> getBulletStates()
      Returns the Current state of the bullets fired by this bot.
      Returns:
      The Current state of the bullets fired by this bot.
    • getEvents Link icon

      public Collection<BotEvent> getEvents()
      Returns the events that occurred for the bot within the turn.
      Returns:
      The events that occurred for the bot within the turn.