Heading
Boat Heading Enum.
EnumRLPlugins API
public enum HeadingValues
SOUTH, SOUTH_SOUTH_WEST, SOUTH_WEST, WEST_SOUTH_WEST, WEST, WEST_NORTH_WEST, NORTH_WEST, NORTH_NORTH_WEST, NORTH, NORTH_NORTH_EAST, NORTH_EAST, EAST_NORTH_EAST, EAST, EAST_SOUTH_EAST, SOUTH_EAST, SOUTH_SOUTH_EAST
Members
Methods
- HeadingfromValue(int)
From value.
- HeadinggetOptimalHeading(WorldPoint)
Get the optimal heading from the current player location to the target location.
- HeadinggetOptimalHeading(WorldPoint, WorldPoint)
Get the optimal heading from a start point to a target point.
- intgetValue()
The value.
fromValue(int)static
public static Heading fromValue(int value)From value.
Parameters
value- Value.
getOptimalHeading(WorldPoint)static
public static Heading getOptimalHeading(WorldPoint target)Get the optimal heading from the current player location to the target location.
Parameters
target- The target WorldPoint.
Returns
The optimal Heading.
getOptimalHeading(WorldPoint, WorldPoint)static
public static Heading getOptimalHeading(WorldPoint start, WorldPoint target)Get the optimal heading from a start point to a target point.
Parameters
start- The starting WorldPoint.
target- The target WorldPoint.
Returns
The optimal Heading.
getValue()
public int getValue()The value.
Also allowed
Every enum has these, as in plain Java.
compareTo, equals, hashCode, name, ordinal, toString, valueOf, values