| Enum Constant and Description |
|---|
ARCHON
An important unit that cannot be constructed; builds other robots.
|
GARDENER
The main producer unit to make other units and trees; can't build Archons or other Gardeners.
|
LUMBERJACK
A melee based unit that specializes at cutting down trees.
|
SCOUT
A unit that specializes in movement and reconnaissance.
|
SOLDIER
The basic fighting unit.
|
TANK
A strong fighting unit.
|
| Modifier and Type | Field and Description |
|---|---|
float |
attackPower
Base damage per attack.
|
float |
bodyRadius
Radius for the robot.
|
int |
buildCooldownTurns
Cooldown turns for structure that spawns it.
|
int |
bulletCost
Cost for creating the robot.
|
float |
bulletSightRadius
Range for sensing bullets.
|
float |
bulletSpeed
Speed of bullets produced from the robot.
|
int |
bytecodeLimit
Base bytecode limit of this robot.
|
int |
maxHealth
Maximum health for the robot.
|
float |
sensorRadius
Range for sensing robots and trees.
|
RobotType |
spawnSource
For units, this is the structure that spawns it.
|
float |
strideRadius
Maximum distance the robot can move per turn.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAttack()
Returns whether the robot can attack.
|
boolean |
canBuild()
Returns whether the robot can build trees and all units except Gardeners and Archons.
|
boolean |
canHire()
Returns whether the robot can hire Gardeners.
|
float |
getStartingHealth()
Returns the starting health of this type of robot.
|
boolean |
isBuildable()
Returns whether the robot is buildable.
|
boolean |
isHireable()
Returns whether the robot is hireable.
|
static RobotType |
valueOf(java.lang.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 ARCHON
maxHealth: 400bodyRadius: 2.0strideRadius: 0.5canAttack(): falsesensorRadius: 10.0bulletSightRadius: 15.0bytecodeLimit: 30000public static final RobotType GARDENER
maxHealth: 40bodyRadius: 1.0strideRadius: 0.5canAttack(): falsespawnSource: ARCHONbulletCost: 100buildCooldownTurns: 10sensorRadius: 7.0bulletSightRadius: 10.0bytecodeLimit: 15000public static final RobotType LUMBERJACK
maxHealth: 50bodyRadius: 1.0strideRadius: 0.8canAttack(): trueattackPower: 2.0spawnSource: GARDENERbulletCost: 100buildCooldownTurns: 10sensorRadius: 7.0bulletSightRadius: 10.0bytecodeLimit: 15000public static final RobotType SOLDIER
maxHealth: 50bodyRadius: 1.0strideRadius: 0.8canAttack(): trueattackPower: 2.0bulletSpeed: 2.0spawnSource: GARDENERbulletCost: 100buildCooldownTurns: 10sensorRadius: 7.0bulletSightRadius: 10.0bytecodeLimit: 15000public static final RobotType TANK
maxHealth: 200bodyRadius: 2.0strideRadius: 0.5canAttack(): trueattackPower: 5.0bulletSpeed: 4.0spawnSource: GARDENERbulletCost: 300buildCooldownTurns: 10sensorRadius: 7.0bulletSightRadius: 10.0bytecodeLimit: 15000public static final RobotType SCOUT
maxHealth: 10bodyRadius: 1.0strideRadius: 1.3canAttack(): trueattackPower: 0.5bulletSpeed: 1.5spawnSource: GARDENERbulletCost: 80buildCooldownTurns: 10sensorRadius: 14.0bulletSightRadius: 20.0bytecodeLimit: 15000public final RobotType spawnSource
public final int buildCooldownTurns
public final int maxHealth
public final int bulletCost
public final float bodyRadius
public final float bulletSpeed
public final float attackPower
public final float sensorRadius
public final float bulletSightRadius
public final float strideRadius
public final int bytecodeLimit
public static RobotType[] values()
for (RobotType c : RobotType.values()) System.out.println(c);
public static RobotType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean canAttack()
public boolean canHire()
public boolean canBuild()
public boolean isHireable()
public boolean isBuildable()
public float getStartingHealth()