public enum RobotType extends Enum<RobotType>
| Enum Constant and Description |
|---|
AEROSPACELAB |
BARRACKS |
BASHER |
BEAVER |
COMMANDER |
COMPUTER |
DRONE |
HANDWASHSTATION
Sanitation is important.
|
HELIPAD |
HQ |
LAUNCHER |
MINER |
MINERFACTORY |
MISSILE |
SOLDIER |
SUPPLYDEPOT |
TANK |
TANKFACTORY |
TECHNOLOGYINSTITUTE |
TOWER |
TRAININGFIELD |
| Modifier and Type | Field and Description |
|---|---|
int |
attackDelay
Attack delay: the amount of contribution to weapon delay from an attack.
|
double |
attackPower
Base damage per attack.
|
int |
attackRadiusSquared
Range^2 for an attack.
|
int |
buildTurns
Number of turns to spawn or build.
|
int |
bytecodeLimit
Base bytecode limit of this robot (halved if the robot does not have sufficient supply upkeep).
|
int |
cooldownDelay
Cooldown delay: the amount of contribution to core delay from an attack.
|
RobotType |
dependency
For structures, this is the pre-requisite structure needed to build this structure (null if not applicable or if there is no dependency).
|
boolean |
isBuilding
Whether this robot is a structure (or building).
|
int |
loadingDelay
Loading delay: the amount of contribution to weapon delay from a movement.
|
double |
maxHealth
Maximum health for the robot.
|
int |
movementDelay
Movement delay: the amount of contribution to core delay from a movement.
|
int |
oreCost
Ore cost for building or spawning.
|
int |
sensorRadiusSquared
Range^2 for sensing.
|
RobotType |
spawnSource
For units, this is the structure that spawns it.
|
int |
strengthWeight
How relatively strong the unit is.
|
int |
supplyUpkeep
Base supply upkeep (not including bytecode supply upkeep).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAttack()
Returns whether the robot can attack.
|
boolean |
canBuild()
Returns whether the robot can build.
|
boolean |
canLaunch()
Returns whether the robot can launch missiles.
|
boolean |
canMine()
Returns whether the robot can mine.
|
boolean |
canMove()
Returns whether the robot can move.
|
boolean |
canSpawn()
Returns whether the robot can spawn.
|
boolean |
isBuildable()
Returns whether the robot is buildable.
|
boolean |
needsSupply()
Returns whether the robot uses supply.
|
static RobotType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RobotType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RobotType HQ
public static final RobotType TOWER
public static final RobotType SUPPLYDEPOT
public static final RobotType TECHNOLOGYINSTITUTE
public static final RobotType BARRACKS
public static final RobotType HELIPAD
public static final RobotType TRAININGFIELD
public static final RobotType TANKFACTORY
public static final RobotType MINERFACTORY
public static final RobotType HANDWASHSTATION
public static final RobotType AEROSPACELAB
public static final RobotType BEAVER
public static final RobotType COMPUTER
public static final RobotType SOLDIER
public static final RobotType BASHER
public static final RobotType MINER
public static final RobotType DRONE
public static final RobotType TANK
public static final RobotType COMMANDER
public static final RobotType LAUNCHER
public static final RobotType MISSILE
public final boolean isBuilding
public final RobotType spawnSource
public final RobotType dependency
public final int oreCost
public final int buildTurns
public final int supplyUpkeep
public final double maxHealth
public final double attackPower
public final int attackRadiusSquared
public final int movementDelay
public final int attackDelay
public final int loadingDelay
public final int cooldownDelay
public final int sensorRadiusSquared
public final int bytecodeLimit
public final int strengthWeight
public static RobotType[] values()
for (RobotType c : RobotType.values()) System.out.println(c);
public static RobotType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean canAttack()
public boolean canMove()
public boolean canMine()
public boolean canLaunch()
public boolean canBuild()
public boolean isBuildable()
public boolean canSpawn()
public boolean needsSupply()