Class GameStartedEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.GameStartedEvent
-
Constructor Summary
ConstructorDescriptionGameStartedEvent
(int myId, InitialPosition initialPosition, GameSetup gameSetup) Initializes a new instance of the GameStartedEvent class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the game setup for the battle just started.Returns the start position of the bot.int
getMyId()
Returns the id used for identifying your bot in the current battle.
-
Constructor Details
-
GameStartedEvent
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 Details
-
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
Returns the start position of the bot.- Returns:
- The start position of the bot.
-
getGameSetup
Returns the game setup for the battle just started.- Returns:
- The game setup for the battle just started.
-