Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HexagonalTile

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private tiles

tiles: AnyTile[] = []

x

y

z

Static directions

directions: Directions<HexagonalTile> = [[Axes6.NW, new HexagonalTile(1, -1, 0)],[Axes6.NE, new HexagonalTile(1, 0, -1)],[Axes6.N, new HexagonalTile(0, 1, -1)],[Axes6.SE, new HexagonalTile(-1, 1, 0)],[Axes6.SW, new HexagonalTile(-1, 0, 1)],[Axes6.S, new HexagonalTile(0, -1, 1)]]

Accessors

key

  • get key(): string

value

Methods

add

cubeLength

directions

distance

equals

left

  • left(): this

neighbors

right

  • right(): this

round

scale

shift

toString

  • toString(): string