Class GameStartedEvent

  • All Implemented Interfaces:
    IEvent

    public final class GameStartedEvent
    extends Object
    implements IEvent
    Event occurring when game has just started.
    • Constructor Detail

      • GameStartedEvent

        public GameStartedEvent​(int myId,
                                InitialPosition initialPosition,
                                GameSetup gameSetup)
        Initializes a new instance of the GameStartedEvent class.
        Parameters:
        myId - is the id used for identifying your bot in the current battle.
        initialPosition - is the initial position of the bot.
        gameSetup - is the game setup for the battle just started.
    • Method Detail

      • getMyId

        public int getMyId()
        Returns the id used for identifying your bot in the current battle.
        Returns:
        The id used for identifying your bot.
      • getInitialPosition

        public InitialPosition getInitialPosition()
        Returns the start position of the bot.
        Returns:
        The start position of the bot.
      • getGameSetup

        public GameSetup getGameSetup()
        Returns the game setup for the battle just started.
        Returns:
        The game setup for the battle just started.