Enum Constant and Description |
---|
WALL_CORNER
A wall which consists of two connected walls
|
WALL_LASER_DOUBLE
A wall with two lasers
|
WALL_LASER_SINGLE
A wall with a laser
|
WALL_LASER_TRIPLE
A wall with three lasers
|
WALL_NORMAL
A normal wall
|
WALL_PUSHER_EVEN
A pusher which pushes on every even phase
|
WALL_PUSHER_ODD
A pusher which pushes on every odd phase
|
Modifier and Type | Method and Description |
---|---|
static WallType |
getWallTypeFromID(int wallTypeID)
Gets a wall type value from its numerical representation
|
int |
getWallTypeID()
Gets the numerical id used for alternate identification of a wall type
|
static WallType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WallType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WallType WALL_NORMAL
public static final WallType WALL_CORNER
public static final WallType WALL_LASER_SINGLE
public static final WallType WALL_LASER_DOUBLE
public static final WallType WALL_LASER_TRIPLE
public static final WallType WALL_PUSHER_ODD
public static final WallType WALL_PUSHER_EVEN
public static WallType[] values()
for (WallType c : WallType.values()) System.out.println(c);
public static WallType 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 WallType getWallTypeFromID(int wallTypeID)
wallTypeID
- The numerical representation of a wall typepublic int getWallTypeID()