Class GameStartedEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.GameStartedEvent
-
-
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.
-
-
-
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.
-
-