battlecode.common
public enum TerrainTile extends Enum<TerrainTile>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTraversableAtHeight(RobotLevel height)
Returns
true if robots at the given
height can traverse this terrain tile. |
static TerrainTile |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TerrainTile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TerrainTile NORMAL
public static final TerrainTile ROAD
public static final TerrainTile VOID
public static final TerrainTile OFF_MAP
public static TerrainTile[] values()
for (TerrainTile c : TerrainTile.values()) System.out.println(c);
public static TerrainTile 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 isTraversableAtHeight(RobotLevel height)
true if robots at the given
height can traverse this terrain tile.