Enum Constant and Description |
---|
BASE
Environment tile, not integral part of the road.
|
BOW
A bow on a way on the road.
|
CROSS
Tile in the center of a cross, allows the choice of multiple directions
(if possible).
|
PRIORITY
A priority before a cross, a car has to stop only if other cars are
coming.
|
ROAD
Simple straight or oblique road.
|
STOP
A stop before a cross, a car has to stop.
|
TRAFFIC_LIGHT
A traffic light before a cross.
|
ZEBRA_CROSSING
A zebra crossing on the road, a car has to reduce its speed and, if
needed, to stop.
|
Modifier and Type | Method and Description |
---|---|
static TileType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TileType BASE
public static final TileType ROAD
public static final TileType CROSS
public static final TileType BOW
public static final TileType TRAFFIC_LIGHT
public static final TileType STOP
public static final TileType PRIORITY
public static final TileType ZEBRA_CROSSING
public static TileType[] values()
for (TileType c : TileType.values()) System.out.println(c);
public static TileType 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 null