public enum Rotation extends Enum<Rotation>
Rotation
is an enumeration type that defines the orientation/rotation of a tile.
The Rotation
is implemented as it is defined in the interface document v1.0.Enum Constant and Description |
---|
EAST
The is rotated from the initial position by 90 degree.
|
NORTH
The tile is not rotated (rotated like it is initialized).
|
SOUTH
The is rotated from the initial position by 180 degree.
|
WEST
The is rotated from the initial position by 270 degree.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static Rotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Rotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rotation NORTH
public static final Rotation EAST
public static final Rotation SOUTH
public static final Rotation WEST
public static Rotation[] values()
for (Rotation c : Rotation.values()) System.out.println(c);
public static Rotation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2017 smarTen. All rights reserved.