Show / Hide Table of Contents

Class GameSetup

Game setup retrieved when game is started.

Inheritance
object
GameSetup
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Robocode.TankRoyale.BotApi
Assembly: api.dll
Syntax
[PublicAPI]
public sealed class GameSetup

Constructors

| Edit this page View Source

GameSetup(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 Source

ArenaHeight

Height of the arena measured in units.

Declaration
public int ArenaHeight { get; }
Property Value
Type Description
int
| Edit this page View Source

ArenaWidth

Width of the arena measured in units.

Declaration
public int ArenaWidth { get; }
Property Value
Type Description
int
| Edit this page View Source

GameType

Game type, e.g. "melee".

Declaration
public string GameType { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

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?
| Edit this page View Source

NumberOfRounds

Number of rounds in a battle.

Declaration
public int NumberOfRounds { get; }
Property Value
Type Description
int
| Edit this page View Source

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
| Edit this page View Source

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
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX