BattleSpecification Constructor (BattlefieldSpecification, Int32, Int64, Double, Int32, Boolean,  RobotSpecification ,  RobotSetup )Robocode Control API for .NET
Creates a new BattleSpecification with the given settings.

Namespace: Robocode.Control
Assembly: robocode.control (in robocode.control.dll) Version: 1.9.2.0
Syntax

public BattleSpecification(
	BattlefieldSpecification battlefieldSize,
	int numRounds,
	long inactivityTime,
	double gunCoolingRate,
	int sentryBorderSize,
	bool hideEnemyNames,
	RobotSpecification[] robots,
	RobotSetup[] initialSetups
)

Parameters

battlefieldSize
Type: Robocode.Control BattlefieldSpecification
The battlefield size.
numRounds
Type: OnlineSystem Int32
The number of rounds in this battle.
inactivityTime
Type: OnlineSystem Int64
The inactivity time allowed for the robots before they will loose energy.
gunCoolingRate
Type: OnlineSystem Double
The gun cooling rate for the robots.
sentryBorderSize
Type: OnlineSystem Int32
The sentry border size for a BorderSentry.
hideEnemyNames
Type: OnlineSystem Boolean
Flag specifying if enemy names are hidden from robots.
robots
Type:  Robocode.Control RobotSpecification 
The robots participating in this battle.
initialSetups
Type:  Robocode.Control RobotSetup 
The initial position and heading of the robots, where the indices matches the indices from the robots.
See Also