public enum AllMoves extends java.lang.Enum<AllMoves>
Modifier and Type | Method and Description |
---|---|
int |
getGroup()
Returns the group of current move.
|
int |
getRotation()
Returns rotational value current move.
|
static AllMoves |
resultingMove(AllMoves move1,
AllMoves move2)
Calculates the resulting move of two moves, that are in the same group and executed after another.
|
java.lang.String |
toString()
Returns the name of the move as String.
|
static AllMoves |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllMoves[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllMoves F
public static final AllMoves FI
public static final AllMoves SF
public static final AllMoves D
public static final AllMoves DI
public static final AllMoves SD
public static final AllMoves R
public static final AllMoves RI
public static final AllMoves SR
public static final AllMoves N
public static AllMoves[] values()
for (AllMoves c : AllMoves.values()) System.out.println(c);
public static AllMoves 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 int getGroup()
public int getRotation()
public static AllMoves resultingMove(AllMoves move1, AllMoves move2)
move1
- First move.move2
- Second move.public java.lang.String toString()
toString
in class java.lang.Enum<AllMoves>