Package dev.robocode.tankroyale.botapi
Class GameSetup
java.lang.Object
dev.robocode.tankroyale.botapi.GameSetup
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the height of the arena measured in units.int
Returns the width of the arena measured in units.Returns the game type, e.g.double
Returns the gun cooling rate.int
Returns the Maximum number of inactive turns allowed, where a bot does not take any action before it is zapped by the game.int
Returns the number of rounds in a battle.int
Returns the time limit in milliseconds for sending ready message after having received 'new battle' message.int
Returns the timeout in milliseconds for sending intent after having received 'tick' message.
-
Constructor Details
-
GameSetup
public GameSetup(String gameType, int arenaWidth, int arenaHeight, int numberOfRounds, double gunCoolingRate, int maxInactivityTurns, int turnTimeout, int readyTimeout)
-
-
Method Details
-
getGameType
-
getArenaWidth
public int getArenaWidth()Returns the width of the arena measured in units.- Returns:
- The width of the arena measured in units.
-
getArenaHeight
public int getArenaHeight()Returns the height of the arena measured in units.- Returns:
- The height of the arena measured in units.
-
getNumberOfRounds
public int getNumberOfRounds()Returns the number of rounds in a battle.- Returns:
- The number of rounds in a battle.
-
getGunCoolingRate
public double getGunCoolingRate()Returns the gun cooling rate. The gun needs to cool down to a gun heat of zero before the gun is able to fire.- Returns:
- The gun cooling rate.
-
getMaxInactivityTurns
public int getMaxInactivityTurns()Returns the Maximum number of inactive turns allowed, where a bot does not take any action before it is zapped by the game.- Returns:
- The Maximum number of inactive turns allowed.
-
getTurnTimeout
public int getTurnTimeout()Returns the timeout in milliseconds for sending intent after having received 'tick' message.- Returns:
- The turn timeout in milliseconds.
-
getReadyTimeout
public int getReadyTimeout()Returns the time limit in milliseconds for sending ready message after having received 'new battle' message.- Returns:
- The ready timeout in milliseconds.
-