BattleSpecification MembersRobocode Control API for .NET

The BattleSpecification type exposes the following members.
Constructors

  NameDescription
Public methodBattleSpecification(Int32, BattlefieldSpecification,  RobotSpecification )
Creates a new BattleSpecification with the given number of rounds, battlefield size, and robots. Inactivity time for the robots defaults to 450, and the gun cooling rate defaults to 0.1.
Public methodBattleSpecification(Int32, Int64, Double, BattlefieldSpecification,  RobotSpecification )
Creates a new BattleSpecification with the given settings.
Public methodBattleSpecification(Int32, Int64, Double, Boolean, BattlefieldSpecification,  RobotSpecification )
Creates a new BattleSpecification with the given settings.
Public methodBattleSpecification(BattlefieldSpecification, Int32, Int64, Double, Int32, Boolean,  RobotSpecification )
Creates a new BattleSpecification with the given settings.
Public methodBattleSpecification(BattlefieldSpecification, Int32, Int64, Double, Int32, Boolean,  RobotSpecification ,  RobotSetup )
Creates a new BattleSpecification with the given settings.
Back to Top
Properties

  NameDescription
Public propertyBattlefield
Contains the battlefield size for this battle.
Public propertyGunCoolingRate
Contains the gun cooling rate of the robots in this battle.
Public propertyHideEnemyNames
Flag specifying if the enemy names must be hidden from events sent to robots.
Public propertyInactivityTime
Contains the allowed inactivity time for the robots in this battle.
Public propertyInitialSetups
Contains the initial position and heading of each robot participating in this battle.
Public propertyNumRounds
Contains the number of rounds in this battle.
Public propertyRobots
Contains the specifications of the robots participating in this battle.
Public propertySentryBorderSize
Returns the sentry border size for a BorderSentry that defines the how far a BorderSentry is allowed to move from the border edges measured in units.

Hence, the sentry border size defines the width/range of the border area surrounding the battlefield that border sentry robots cannot leave (they must stay in the border area), but it also define the distance from the border edges where border sentry robots are allowed/able to make damage to robots entering this border area.
Back to Top
See Also