public enum TerrainType extends java.lang.Enum<TerrainType>
Enum Constant and Description |
---|
GRASS
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final TerrainType GRASS
public static final TerrainType OBSTACLE
SAND
.public static final TerrainType ROAD
public static final TerrainType SAND
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 namejava.lang.NullPointerException
- if the argument is nullpublic static TerrainType[] values()
for (TerrainType c : TerrainType.values()) System.out.println(c);