HGridMan

ostrat.prid.phex.HGridMan
trait HGridMan

HGrid manager. The motivation for this class is that a tile grid has no knowledge of the multi tile grid system within which it has been placed. The idea is to encapsulate the code for managing a grid within an object rather than having it all within the HGridSys Not sure if its a good idea or not.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def grid: HGrid

The grid that this object manages for the HGridMulti.

The grid that this object manages for the HGridMulti.

Attributes

The tile data array index start for this grid manager.

The tile data array index start for this grid manager.

Attributes

Foreach's over sides of the HGrid that are links ar inner sides within the HGridSys. Note this wil include all the links of the HGrid plus outer sides of the HGrid that link to hexs in other HGrids within the system.

Foreach's over sides of the HGrid that are links ar inner sides within the HGridSys. Note this wil include all the links of the HGrid plus outer sides of the HGrid that link to hexs in other HGrids within the system.

Attributes

The offet is used in the implementation of the flatHCoordToPt2(hCoord: HCoord) method in HGridMulti where it is added to the Pt2 value given by the HGrid.

The offet is used in the implementation of the flatHCoordToPt2(hCoord: HCoord) method in HGridMulti where it is added to the Pt2 value given by the HGrid.

Attributes

Tile steps from a hex within this managers grid to other grids.

Tile steps from a hex within this managers grid to other grids.

Attributes

Foreach's over the sides of the HGrid that are outer sides, ie nt links of the HGridSys. This will be a subset of the Hgrids's outer sides, as some of the girds outer sides will link to hexes in other grids within the [HGridSys]] grid system.

Foreach's over the sides of the HGrid that are outer sides, ie nt links of the HGridSys. This will be a subset of the Hgrids's outer sides, as some of the girds outer sides will link to hexes in other grids within the [HGridSys]] grid system.

Attributes

def sideArrIndex(r: Int, c: Int): Int

Gives the index into an HSide data layer's backing Array.

Gives the index into an HSide data layer's backing Array.

Attributes

The multi grid system that contains the grid that this is managing.

The multi grid system that contains the grid that this is managing.

Attributes

The position of this grid manager and grid within the grid sequence of the HGridMulti.

The position of this grid manager and grid within the grid sequence of the HGridMulti.

Attributes

Concrete methods

Default implementation may need removal.

Default implementation may need removal.

Attributes

def findStep(startHC: HCen, endHC: HCen): Option[HStep]
def findStepEnd(startHC: HCen, step: HStep): Option[HCen]
def hCenSteps(hCen: HCen): HStepArr

The number of tiles in the Hex grid this manager class is managing.

The number of tiles in the Hex grid this manager class is managing.

Attributes

final def outSteps(hCen: HCen): HStepCenArr

Tile steps from a hex within this managers grid to other grids.

Tile steps from a hex within this managers grid to other grids.

Attributes

def sideTile1(hSide: HSide): HCen
def sideTile2(hSide: HSide): HCen
def sideTiles(hSide: HSide): (HCen, HCen)
def sidesFold[A](init: A)(f: (A, HSide) => A): A
def sidesFold[A](f: (A, HSide) => A)(implicit ev: DefaultValue[A]): A