Package rs.kreme.ksbot.api.game
Enum Pathing.Direction
- java.lang.Object
-
- java.lang.Enum<Pathing.Direction>
-
- rs.kreme.ksbot.api.game.Pathing.Direction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Pathing.Direction>
- Enclosing class:
- Pathing
public static enum Pathing.Direction extends java.lang.Enum<Pathing.Direction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EASTNORTHNORTH_EASTNORTH_WESTSOUTHSOUTH_EASTSOUTH_WESTWEST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdx()intdy()static Pathing.DirectionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Pathing.Direction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORTH
public static final Pathing.Direction NORTH
-
SOUTH
public static final Pathing.Direction SOUTH
-
EAST
public static final Pathing.Direction EAST
-
WEST
public static final Pathing.Direction WEST
-
NORTH_EAST
public static final Pathing.Direction NORTH_EAST
-
NORTH_WEST
public static final Pathing.Direction NORTH_WEST
-
SOUTH_EAST
public static final Pathing.Direction SOUTH_EAST
-
SOUTH_WEST
public static final Pathing.Direction SOUTH_WEST
-
-
Method Detail
-
values
public static Pathing.Direction[] 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 (Pathing.Direction c : Pathing.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pathing.Direction 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
-
dx
public int dx()
-
dy
public int dy()
-
-