public class BattleSpecification extends Object implements Serializable
RobocodeEngine
.Constructor and Description |
---|
BattleSpecification(int numRounds,
BattlefieldSpecification battlefieldSize,
RobotSpecification[] robots)
Creates a new BattleSpecification with the given number of rounds,
battlefield size, and robots.
|
BattleSpecification(int numRounds,
long inactivityTime,
double gunCoolingRate,
BattlefieldSpecification battlefieldSize,
RobotSpecification[] robots)
Creates a new BattleSpecification with the given settings.
|
Modifier and Type | Method and Description |
---|---|
BattlefieldSpecification |
getBattlefield()
Returns the battlefield size for this battle.
|
robocode.battle.BattleProperties |
getBattleProperties()
Deprecated.
This methods is called by the game and is very likely to be
removed in a future version of Robocode.
|
double |
getGunCoolingRate()
Returns the gun cooling rate of the robots in this battle.
|
long |
getInactivityTime()
Returns the allowed inactivity time for the robots in this battle.
|
int |
getNumRounds()
Returns the number of rounds in this battle.
|
RobotSpecification[] |
getRobots()
Returns the specifications of the robots participating in this battle.
|
public BattleSpecification(int numRounds, BattlefieldSpecification battlefieldSize, RobotSpecification[] robots)
numRounds
- the number of rounds in this battlebattlefieldSize
- the battlefield sizerobots
- the robots participating in this battlepublic BattleSpecification(int numRounds, long inactivityTime, double gunCoolingRate, BattlefieldSpecification battlefieldSize, RobotSpecification[] robots)
numRounds
- the number of rounds in this battleinactivityTime
- the inactivity time allowed for the robots before
they will loose energygunCoolingRate
- the gun cooling rate for the robotsbattlefieldSize
- the battlefield sizerobots
- the robots participating in this battlepublic long getInactivityTime()
public double getGunCoolingRate()
public BattlefieldSpecification getBattlefield()
public int getNumRounds()
public RobotSpecification[] getRobots()
@Deprecated public robocode.battle.BattleProperties getBattleProperties()