Class GameSetup
Game setup retrieved when game is started.
Inherited Members
Namespace: Robocode.TankRoyale.BotApi
Assembly: Robocode.TankRoyale.BotApi.dll
Syntax
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 milliseconds for sending ready message after having received 'new battle' message.
Declaration
public int ReadyTimeout { get; }
Property Value
Type | Description |
---|---|
int |
TurnTimeout
Timeout in milliseconds for sending intent after having received 'tick' message.
Declaration
public int TurnTimeout { get; }
Property Value
Type | Description |
---|---|
int |