java.lang.Objectjava.lang.Enum<TerrainType>
jrobots.landscape.TerrainType
public enum TerrainType
Enum Constant Summary | |
---|---|
GRASS
This terrain type is worse than ROAD and better than
SAND to drive on. |
|
OBSTACLE
This terrain type is unpassable. |
|
ROAD
The central area of each track consists of this terrain type, paved road. |
|
SAND
This is the worst terrain type that a vehicle can actually drive through. |
Method Summary | |
---|---|
abstract double |
getFrictionFactorFrontal()
Friction factor applied to frontal friction |
abstract double |
getFrictionFactorLateral()
Friction factor applied to lateral friction |
static TerrainType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TerrainType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TerrainType GRASS
ROAD
and better than
SAND
to drive on.
public static final TerrainType OBSTACLE
SAND
.
public static final TerrainType ROAD
public static final TerrainType SAND
GRASS
and OBSTACLE
types.
Method Detail |
---|
public abstract double getFrictionFactorFrontal()
public abstract double getFrictionFactorLateral()
public static TerrainType 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 name
java.lang.NullPointerException
- if the argument is nullpublic static TerrainType[] values()
for (TerrainType c : TerrainType.values()) System.out.println(c);