HStep

ostrat.prid.phex.HStep
See theHStep companion object
sealed trait HStep extends TStepSided, HStepLike

A step on a hex tile grid HGrid can take 6 values: upright right, downright, downleft, left and upleft. These should not be confused with HVDirnOpts which fo from an HVert to an HCen.

Attributes

Companion
object
Graph
Supertypes
trait HStepLike
trait TStepSided
trait TStepLike
trait Int1Elem
trait IntNElem
trait ValueNElem
trait SpecialT
class Object
trait Matchable
class Any
Show all
Known subtypes
object HexDL
object HexDR
object HexLt
object HexRt
object HexUL
object HexUR
Show all

Members list

Value members

Abstract methods

def int1: Int
def reverse: HStep

Concrete methods

def canEqual(a: Any): Boolean

The delta HCen of this step inside a hex grid.

The delta HCen of this step inside a hex grid.

Attributes

Inherited methods

override def intBufferAppend(buffer: ArrayBuffer[Int]): Unit

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Utility method to append this element on to an ArrayBuffer[Int]. End users should rarely need to use this method. This is useful for methods like filter.

Attributes

Definition Classes
Inherited from:
Int1Elem
override def intForeach(f: Int => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Int1Elem
def mapOpt[B, ArrB <: Arr[B]](f: HStep => B): Option[B]

Returns a Some of the result of the function if this is an HStep else returns None.

Returns a Some of the result of the function if this is an HStep else returns None.

Attributes

Inherited from:
HStepLike
def sc: Int

Tile half step c column coordinate delta. The c delta to the tile side.

Tile half step c column coordinate delta. The c delta to the tile side.

Attributes

Inherited from:
TStepSided
def sr: Int

Tile half step r row coordinate delta. The r delta to the tile side.

Tile half step r row coordinate delta. The r delta to the tile side.

Attributes

Inherited from:
TStepSided
final inline override def tc: Int

The delta in c for the target tile.

The delta in c for the target tile.

Attributes

Definition Classes
Inherited from:
TStepSided
final inline override def tr: Int

The delta in r for the target tile.

The delta in r for the target tile.

Attributes

Definition Classes
Inherited from:
TStepSided