DirectionHex

enum DirectionHex : Enum<DirectionHex>

A collection of constants representing directions

Entries

UP
Link copied to clipboard
UP(Coordinate2D(0, 2))
UP_UP_RIGHT
Link copied to clipboard
UP_UP_RIGHT(Coordinate2D(1, 3))
UP_RIGHT
Link copied to clipboard
UP_RIGHT(Coordinate2D(1, 1))
RIGHT
Link copied to clipboard
RIGHT(Coordinate2D(2, 0))
DOWN_RIGHT
Link copied to clipboard
DOWN_RIGHT(Coordinate2D(1, -1))
DOWN_DOWN_RIGHT
Link copied to clipboard
DOWN_DOWN_RIGHT(Coordinate2D(1, -3))
DOWN
Link copied to clipboard
DOWN(Coordinate2D(0, -2))
DOWN_DOWN_LEFT
Link copied to clipboard
DOWN_DOWN_LEFT(Coordinate2D(-1, -3))
DOWN_LEFT
Link copied to clipboard
DOWN_LEFT(Coordinate2D(-1, -1))
LEFT
Link copied to clipboard
LEFT(Coordinate2D(-2, 0))
UP_LEFT
Link copied to clipboard
UP_LEFT(Coordinate2D(-1, 1))
UP_UP_LEFT
Link copied to clipboard
UP_UP_LEFT(Coordinate2D(-1, 3))

Functions

compareTo
Link copied to clipboard
operator override fun compareTo(other: DirectionHex): Int
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
finalize
Link copied to clipboard
fun finalize()
getDeclaringClass
Link copied to clipboard
fun getDeclaringClass(): Class<DirectionHex>
hashCode
Link copied to clipboard
override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

coordinate
Link copied to clipboard
val coordinate: Coordinate2D
the vector corresponding to each direction
name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int