Class TickEvent

  • All Implemented Interfaces:
    IEvent

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

      Constructors 
      Constructor Description
      TickEvent​(int turnNumber, int roundNumber, BotState botState, java.util.Collection<BulletState> bulletStates, java.util.Collection<BotEvent> events)
      Initializes a new instance of the TickEvent class.
    • Constructor Detail

      • TickEvent

        public TickEvent​(int turnNumber,
                         int roundNumber,
                         BotState botState,
                         java.util.Collection<BulletState> bulletStates,
                         java.util.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 Detail

      • getRoundNumber

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

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

        public java.util.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

        public java.util.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.