|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object robocraft.common.CommonEnum robocraft.common.ObjectType robocraft.common.RobotType
RobotType represents the type of Robot objects that can exist in the game.
The only instances of this class are those found in the static fields described below. This means that instances can always be meaningfully compared using ==
.
ObjectType
,
GameObject.getType()
,
Serialized Form
Field Summary | |
static RobotType |
BOMBER
|
static RobotType |
FALCON
|
static RobotType |
SENTRY
|
static RobotType |
TANK
|
Fields inherited from class robocraft.common.ObjectType |
FLAG, MINE |
Method Summary | |
double |
attackAngle()
returns the angle of this robot's attack range. |
double |
attackCosHalfTheta()
returns the cosine of half the attack angle. |
int |
attackDelay()
returns the amount of rounds this robot will take to attack. |
double |
attackPower()
returns the amount of energon this robot will drain from an enemy during an attack. |
int |
attackRadiusMax()
returns the maximum distance from this robot's location to a MapLocation in its attack range. |
int |
attackRadiusMin()
returns the minimum distance from this robot's location to a MapLocation in its attack range. |
int |
broadcastRadius()
returns the maximum distance from this robot another robot can be to receive broadcasted messages. |
int |
bytecodesPerRound()
returns the number of bytecodes this robot can process per round. |
boolean |
canAttackAir()
returns whether this robot will inflict damage on an airborne robot at a MapLocation that this robot attacks. |
boolean |
canAttackGround()
returns whether this robot will inflict damage on a ground robot at a MapLocation that this robot attacks. |
boolean |
canCarryFlag()
returns whether this robot can pick up flags. |
boolean |
canLayMine()
returns whether this robot can lay mines. |
double |
fullEnergon()
|
boolean |
isAirborne()
returns whether this robot is airborne. |
double |
maxEnergon()
returns the maximum energon level of this robot. |
int |
mineDelay()
|
int |
moveDelayDiagonal()
returns the number of rounds this robot will take to move in a diagonal Direction. |
int |
moveDelayOrthogonal()
returns the number of rounds this robot will take to move in an orthogonal (non-diagonal) Direction. |
double |
sensorAngle()
returns the angle of this robot's sensor range. |
double |
sensorCosHalfTheta()
returns the cosine of half the sensor angle. |
int |
sensorRadius()
returns the maximum distance from this robot's location to a MapLocation in its sensor range. |
double |
spawnCost()
returns the amount of energon needed by another robot to spawn this robot. |
int |
spawnDelay()
returns the number of rounds for which this robot is active after spawning. |
double |
startEnergon()
returns the initial energon level of this robot. |
int |
wakeDelay()
returns the number of rounds for which this robot is active after being spawned. |
Methods inherited from class robocraft.common.ObjectType |
isRobot, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final RobotType SENTRY
public static final RobotType TANK
public static final RobotType FALCON
public static final RobotType BOMBER
Method Detail |
public double attackAngle()
public double attackCosHalfTheta()
public int attackDelay()
public double attackPower()
public int attackRadiusMax()
public int attackRadiusMin()
public int broadcastRadius()
public int bytecodesPerRound()
public boolean canAttackAir()
public boolean canAttackGround()
public boolean canCarryFlag()
public boolean canLayMine()
public double fullEnergon()
public boolean isAirborne()
public double maxEnergon()
public int mineDelay()
public int moveDelayDiagonal()
public int moveDelayOrthogonal()
public double sensorAngle()
public double sensorCosHalfTheta()
public int sensorRadius()
public double spawnCost()
public int spawnDelay()
public double startEnergon()
public int wakeDelay()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |