|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.control.BattleSpecification
public class BattleSpecification
A BattleSpecification defines a battle configuration used by the RobocodeEngine
.
Constructor Summary | |
---|---|
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. |
|
BattleSpecification(int numRounds,
long inactivityTime,
double gunCoolingRate,
boolean hideEnemyNames,
BattlefieldSpecification battlefieldSize,
RobotSpecification[] robots)
Creates a new BattleSpecification with the given settings. |
Method Summary | |
---|---|
BattlefieldSpecification |
getBattlefield()
Returns the battlefield size for this battle. |
double |
getGunCoolingRate()
Returns the gun cooling rate of the robots in this battle. |
boolean |
getHideEnemyNames()
Flag specifying if the enemy names must be hidden from events sent to robots. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 BattleSpecification(int numRounds, long inactivityTime, double gunCoolingRate, boolean hideEnemyNames, 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 robotshideEnemyNames
- flag specifying if enemy names are hidden from robotsbattlefieldSize
- the battlefield sizerobots
- the robots participating in this battleMethod Detail |
---|
public long getInactivityTime()
public double getGunCoolingRate()
public BattlefieldSpecification getBattlefield()
public int getNumRounds()
public boolean getHideEnemyNames()
public RobotSpecification[] getRobots()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |