|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocode.BattleRules
public final class BattleRules
Contains the battle rules returned by BattleStartedEvent.getBattleRules()
when a battle is started and
BattleCompletedEvent.getBattleRules()
when a battle is completed.
BattleStartedEvent
,
BattleCompletedEvent
,
Serialized FormMethod Summary | |
---|---|
int |
getBattlefieldHeight()
Returns the battlefield height. |
int |
getBattlefieldWidth()
Returns the battlefield width. |
double |
getGunCoolingRate()
Returns the rate at which the gun will cool down, i.e. the amount of heat the gun heat will drop per turn. |
boolean |
getHideEnemyNames()
Returns true if the enemy names are hidden, i.e. anonymous; false otherwise. |
long |
getInactivityTime()
Returns the allowed inactivity time, where the robot is not taking any action, before will begin to be zapped. |
int |
getNumRounds()
Returns the number of rounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getBattlefieldWidth()
public int getBattlefieldHeight()
public int getNumRounds()
public double getGunCoolingRate()
Robot.getGunHeat()
,
Robot.fire(double)
,
Robot.fireBullet(double)
public long getInactivityTime()
Robot.doNothing()
,
AdvancedRobot.execute()
public boolean getHideEnemyNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |