|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrobocraft.common.CommonEnum
robocraft.common.TerrainType
TerrainType represents the type of terrain assigned to a given map square.
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 ==
.
AbstractRobotPlayer.getTerrainType(robocraft.common.MapLocation)
,
Serialized Form
Field Summary | |
static TerrainType |
LAND
Represents the terrain type of an Outdoor Land square, which permits all robots and objects. |
static TerrainType |
OFF_MAP
Represents the terrain type of squares which are outside the bounds of the map. |
static TerrainType |
WATER
Represents the terrain type of a Water square, which does not permit ground objects. |
Method Summary | |
boolean |
isAirTraversable()
Determines whether this terrain permits air objects. |
boolean |
isGroundTraversable()
Determines whether this terrain permits ground objects. |
java.lang.String |
toString()
Returns the name of the terrain type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final TerrainType WATER
public static final TerrainType LAND
public static final TerrainType OFF_MAP
Method Detail |
public java.lang.String toString()
public boolean isGroundTraversable()
public boolean isAirTraversable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |