Class GameStartedEvent

  • All Implemented Interfaces:
    IEvent

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

      Constructors 
      Constructor Description
      GameStartedEvent​(int myId, InitialPosition initialPosition, GameSetup gameSetup)
      Initializes a new instance of the GameStartedEvent class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GameSetup getGameSetup()
      Returns the game setup for the battle just started.
      InitialPosition getInitialPosition()
      Returns the start position of the bot.
      int getMyId()
      Returns the id used for identifying your bot in the current battle.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.