Package net.sf.freecol.client.control
Enum InGameController.MoveMode
- java.lang.Object
-
- java.lang.Enum<InGameController.MoveMode>
-
- net.sf.freecol.client.control.InGameController.MoveMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InGameController.MoveMode>
- Enclosing class:
- InGameController
private static enum InGameController.MoveMode extends java.lang.Enum<InGameController.MoveMode>
Selecting next unit depends on mode--- either from the active list, from the going-to list, or flush going-to and end the turn.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_TURN
EXECUTE_GOTO_ORDERS
NEXT_ACTIVE_UNIT
-
Constructor Summary
Constructors Modifier Constructor Description private
MoveMode()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InGameController.MoveMode
maximize(InGameController.MoveMode m)
InGameController.MoveMode
minimize(InGameController.MoveMode m)
static InGameController.MoveMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InGameController.MoveMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEXT_ACTIVE_UNIT
public static final InGameController.MoveMode NEXT_ACTIVE_UNIT
-
EXECUTE_GOTO_ORDERS
public static final InGameController.MoveMode EXECUTE_GOTO_ORDERS
-
END_TURN
public static final InGameController.MoveMode END_TURN
-
-
Method Detail
-
values
public static InGameController.MoveMode[] 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 (InGameController.MoveMode c : InGameController.MoveMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InGameController.MoveMode 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 namejava.lang.NullPointerException
- if the argument is null
-
minimize
public InGameController.MoveMode minimize(InGameController.MoveMode m)
-
maximize
public InGameController.MoveMode maximize(InGameController.MoveMode m)
-
-