Class GameSetup
Game setup retrieved when game is started.
Inherited Members
Namespace: Robocode.TankRoyale.BotApi
Assembly: api.dll
Syntax
[PublicAPI]
public sealed class GameSetup
Constructors
| Edit this page View SourceGameSetup(string, int, int, int, double, int?, int, int)
Declaration
public GameSetup(string gameType, int arenaWidth, int arenaHeight, int numberOfRounds, double gunCoolingRate, int? maxInactivityTurns, int turnTimeout, int readyTimeout)
Parameters
| Type | Name | Description |
|---|---|---|
| string | gameType | |
| int | arenaWidth | |
| int | arenaHeight | |
| int | numberOfRounds | |
| double | gunCoolingRate | |
| int? | maxInactivityTurns | |
| int | turnTimeout | |
| int | readyTimeout |
Properties
| Edit this page View SourceArenaHeight
Height of the arena measured in units.
Declaration
public int ArenaHeight { get; }
Property Value
| Type | Description |
|---|---|
| int |
ArenaWidth
Width of the arena measured in units.
Declaration
public int ArenaWidth { get; }
Property Value
| Type | Description |
|---|---|
| int |
GameType
Game type, e.g. "melee".
Declaration
public string GameType { get; }
Property Value
| Type | Description |
|---|---|
| string |
GunCoolingRate
Gun cooling rate. The gun needs to cool down to a gun heat of zero before the gun is able to fire.
Declaration
public double GunCoolingRate { get; }
Property Value
| Type | Description |
|---|---|
| double |
MaxInactivityTurns
Maximum number of inactive turns allowed, where a bot does not take any action before it is zapped by the game.
Declaration
public int? MaxInactivityTurns { get; }
Property Value
| Type | Description |
|---|---|
| int? |
NumberOfRounds
Number of rounds in a battle.
Declaration
public int NumberOfRounds { get; }
Property Value
| Type | Description |
|---|---|
| int |
ReadyTimeout
Time limit in microseconds (µs) (where 1 microsecond equals 1/1,000,000 of a second) for sending a 'ready' message after receiving a 'new battle' message.
Declaration
public int ReadyTimeout { get; }
Property Value
| Type | Description |
|---|---|
| int |
TurnTimeout
Timeout duration in microseconds (µs) (where 1 microsecond equals 1/1,000,000 of a second) for sending intent after receiving a 'tick' message.
Declaration
public int TurnTimeout { get; }
Property Value
| Type | Description |
|---|---|
| int |