|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.control.BattleSpecification
public class BattleSpecification
Defines a battle
Constructor Summary | |
---|---|
BattleSpecification(int numRounds,
BattlefieldSpecification battlefield,
RobotSpecification[] robotSpecifications)
Creates a BattleSpecification with the given number of rounds, battlefield, and robots inactivityTime defaults to 450. |
|
BattleSpecification(int numRounds,
long inactivityTime,
double gunCoolingRate,
BattlefieldSpecification battlefield,
RobotSpecification[] robots)
Creates a BattleSpecification with the given number of rounds, inactivityTime, gunCoolingRate, battlefield, and robots |
Method Summary | |
---|---|
BattlefieldSpecification |
getBattlefield()
Gets the battleField for this battle |
robocode.battle.BattleProperties |
getBattleProperties()
Deprecated. |
double |
getGunCoolingRate()
Gets the gunCoolingRate for this battle |
long |
getInactivityTime()
Gets the inactivityTime for this battle |
int |
getNumRounds()
Gets the number of rounds in this battle |
RobotSpecification[] |
getRobots()
Gets 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 battlefield, RobotSpecification[] robotSpecifications)
numRounds
- Number of rounds in this battlebattlefield
- The battlefieldrobotSpecifications
- Robots in this battlepublic BattleSpecification(int numRounds, long inactivityTime, double gunCoolingRate, BattlefieldSpecification battlefield, RobotSpecification[] robots)
numRounds
- Number of rounds in this battleinactivityTime
- Number of ticks in which 10 energy must be lostgunCoolingRate
- Gun cooling ratebattlefield
- The battlefieldrobots
- Robots in this battleMethod Detail |
---|
public long getInactivityTime()
public double getGunCoolingRate()
public BattlefieldSpecification getBattlefield()
public int getNumRounds()
public RobotSpecification[] getRobots()
@Deprecated public robocode.battle.BattleProperties getBattleProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |