EGridLongMan

ostrat.egrid.EGridLongMan
final case class EGridLongMan(thisInd: Int, sys: EGridLongMulti) extends EGridMan

Manages an EGridLong.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EGridMan
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def adjTilesOfTile(origR: Int, origC: Int): HCenArr

Attributes

Definition Classes
override def findStep(startR: Int, startC: Int, endR: Int, endC: Int): Option[HStep]

Attributes

Definition Classes
override def findStepEnd(startHC: HCen, step: HStep): Option[HCen]

Attributes

Definition Classes
final override def grid: EGridLong

The grid that this manages.

The grid that this manages.

Attributes

Definition Classes
override def hCenExists(r: Int, c: Int): Boolean

Attributes

Definition Classes
override def hCoordExists(r: Int, c: Int): Boolean

Attributes

Definition Classes
final override def indexStart: Int

The tile data array index start for this grid manager.

The tile data array index start for this grid manager.

Attributes

Definition Classes
override def innerRowInnerSidesForeach(r: Int)(f: HSep => Unit): Unit

Attributes

Definition Classes

This manages the left or west most grid. System does not cover all longitudes.

This manages the left or west most grid. System does not cover all longitudes.

Attributes

This manages the right or east most grid. System does not cover all longitudes.

This manages the right or east most grid. System does not cover all longitudes.

Attributes

The grid to the left or west of the grid this manages.

The grid to the left or west of the grid this manages.

Attributes

final override def offset: Vec2

The offset 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 offset 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

Definition Classes
final override def outSteps(r: Int, c: Int): 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

Definition Classes
override def outerSidesForeach(f: HSep => Unit): Unit

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

Definition Classes
def rowSidesForeach(r: Int)(f: HSep => Unit): Unit

The grid to the right or east of the grid this manages.

The grid to the right or east of the grid this manages.

Attributes

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

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

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

Attributes

Definition Classes
override def sideTileLtAndVertUnsafe(hSide: HSep): (HCen, Int)

Attributes

Definition Classes
def sideTileLtFind(hSide: HSep): Option[HCen]
override def sideTileLtUnsafe(hSide: HSep): HCen

This method should only be used when you know the side tile exists.

This method should only be used when you know the side tile exists.

Attributes

Definition Classes

Vert nums incorrect.

Vert nums incorrect.

Attributes

def sideTileRtFind(hSide: HSep): Option[HCen]
override def sideTileRtUnsafe(hSide: HSep): HCen

This method should only be used when you know the side tile exists.

This method should only be used when you know the side tile exists.

Attributes

Definition Classes
override def sidesForeach(f: HSep => Unit): Unit

Attributes

Definition Classes
override def vertToCoordFind(r: Int, c: Int, dirn: HVDirn): Option[HCoord]

Finds the HCoord from the HVert in the given HVDirn if it exists in the EGridSys, else returns None.

Finds the HCoord from the HVert in the given HVDirn if it exists in the EGridSys, else returns None.

Attributes

Definition Classes

Inherited methods

final def adjTilesOfTile(origin: HCen): HCenArr

Attributes

Inherited from:
EGridMan
final def findStep(startHC: HCen, endHC: HCen): Option[HStep]

Attributes

Inherited from:
EGridMan
def findStepEnd(r: Int, c: Int, step: HStep): Option[HCen]

Attributes

Inherited from:
EGridMan
final def hCenExists(hCen: HCen): Boolean

Attributes

Inherited from:
EGridMan
def hCenSteps(hCen: HCen): HStepArr

Attributes

Inherited from:
EGridMan
final def linksForeach(f: HSep => Unit): Unit

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

Inherited from:
EGridMan
def numSides: Int

Attributes

Inherited from:
EGridMan
def numTiles: Int

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

Inherited from:
EGridMan
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

Inherited from:
EGridMan

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def sidesFold[A](f: (A, HSep) => A)(implicit ev: DefaultValue[A]): A

Attributes

Inherited from:
EGridMan
def sidesFold[A](init: A)(f: (A, HSep) => A): A

Attributes

Inherited from:
EGridMan
def unsafeSideTiles(hSide: HSep): (HCen, HCen)

This method should only be used when you know both side tiles exist.

This method should only be used when you know both side tiles exist.

Attributes

Inherited from:
EGridMan
final def vertToCoordFind(hVert: HVert, dirn: HVDirn): Option[HCoord]

Attributes

Inherited from:
EGridMan

Concrete fields

Array of indexes for Side data Arrs giving the index value for the start of each side row.

Array of indexes for Side data Arrs giving the index value for the start of each side row.

Attributes

Inherited fields

lazy val sideIndexStart: Int

Attributes

Inherited from:
EGridMan