util
Enum GameMath.MapRotate
java.lang.Object
java.lang.Enum<GameMath.MapRotate>
util.GameMath.MapRotate
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<GameMath.MapRotate>
- Enclosing class:
- GameMath
public static enum GameMath.MapRotate
- extends java.lang.Enum<GameMath.MapRotate>
| 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 |
LEFT_45
public static final GameMath.MapRotate LEFT_45
LEFT_90
public static final GameMath.MapRotate LEFT_90
LEFT_135
public static final GameMath.MapRotate LEFT_135
LEFT_180
public static final GameMath.MapRotate LEFT_180
RIGHT_45
public static final GameMath.MapRotate RIGHT_45
RIGHT_90
public static final GameMath.MapRotate RIGHT_90
RIGHT_135
public static final GameMath.MapRotate RIGHT_135
RIGHT_180
public static final GameMath.MapRotate RIGHT_180
rot
public final int rot
degrees
public final int degrees
values
public static GameMath.MapRotate[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GameMath.MapRotate c : GameMath.MapRotate.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GameMath.MapRotate valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getRotation
public static GameMath.MapRotate getRotation(GameMath.MapDir from,
GameMath.MapDir to)