Package org.rspeer.game.movement.sailing
Enum Heading
- java.lang.Object
-
- java.lang.Enum<Heading>
-
- org.rspeer.game.movement.sailing.Heading
-
- All Implemented Interfaces:
Serializable,Comparable<Heading>
public enum Heading extends Enum<Heading>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EASTEAST_NORTH_EASTEAST_SOUTH_EASTNORTHNORTH_EASTNORTH_NORTH_EASTNORTH_NORTH_WESTNORTH_WESTSOUTHSOUTH_EASTSOUTH_SOUTH_EASTSOUTH_SOUTH_WESTSOUTH_WESTWESTWEST_NORTH_WESTWEST_SOUTH_WEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static HeadingvalueOf(String name)Returns the enum constant of this type with the specified name.static Heading[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOUTH
public static final Heading SOUTH
-
SOUTH_SOUTH_WEST
public static final Heading SOUTH_SOUTH_WEST
-
SOUTH_WEST
public static final Heading SOUTH_WEST
-
WEST_SOUTH_WEST
public static final Heading WEST_SOUTH_WEST
-
WEST
public static final Heading WEST
-
WEST_NORTH_WEST
public static final Heading WEST_NORTH_WEST
-
NORTH_WEST
public static final Heading NORTH_WEST
-
NORTH_NORTH_WEST
public static final Heading NORTH_NORTH_WEST
-
NORTH
public static final Heading NORTH
-
NORTH_NORTH_EAST
public static final Heading NORTH_NORTH_EAST
-
NORTH_EAST
public static final Heading NORTH_EAST
-
EAST_NORTH_EAST
public static final Heading EAST_NORTH_EAST
-
EAST
public static final Heading EAST
-
EAST_SOUTH_EAST
public static final Heading EAST_SOUTH_EAST
-
SOUTH_EAST
public static final Heading SOUTH_EAST
-
SOUTH_SOUTH_EAST
public static final Heading SOUTH_SOUTH_EAST
-
-
Method Detail
-
values
public static Heading[] 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 (Heading c : Heading.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Heading valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-
-