public enum TerrainTile extends Enum<TerrainTile>
VOID squares cannot be moved on by any units except drones and missiles. NORMAL squares can be freely moved and built on. These are the only squares that may have ore on them. UNKNOWN squares have not been sensed yet, and their terrain type is not known. OFF_MAP squares are not within the map boundaries. | Modifier and Type | Method and Description |
|---|---|
boolean |
isTraversable()
Returns
true if robots
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 VOID
public static final TerrainTile UNKNOWN
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 isTraversable()
true if robots
can traverse this terrain tile.