Orientation

public final class Orientation

Represents the orientation of an entity

Constructors

Orientable.Orientation
Link copied to clipboard
void Orientable.Orientation(int angle)

Types

Direction
Link copied to clipboard
public enum Direction
Represents a cardinal direction (and the four inter-cardinal directions)

Functions

equals
Link copied to clipboard
boolean equals(Object o)
getAngle
Link copied to clipboard
int getAngle()
getClosestDirection
Link copied to clipboard
The closest cardinal direction to this orientation
hashCode
Link copied to clipboard
int hashCode()
toString
Link copied to clipboard
String toString()

Properties

angle
Link copied to clipboard
private final int angle
The angle in the game angle unit system.