ostrat.prid
The tile grid package, replacing the old pGrid package. This package works with hexagonal and Square tile grids. There are separate class for the different types of Coordinates HCen, SqCen, HSide, etc. The tile objects themselves will not in the general case the contain grid coordinates, although it may be necessary to include this data for complex tile values interacting with their wider environment. Its fundamental components are the grid data itself. This is just a linear array of tile data. Compile-time typed grid data. So for example a chess board can be represented by a 64 element Arr, its context determines that it is to be interpreted as an 8 by 8 square grid. Grid descriptions that describe the grid representation in the Array and GridFunctions which implement Cood to T. The grid and grid-gui hierarchies currently contain a mix of new and old systems.
The package name prid, short for package grid, was chosen to allow you to use the name "grid" in your code.
Attributes
Members list
Packages
Package for hex grids.
Package for hex grids.
Attributes
Package for square tile grids.
Package for square tile grids.
Attributes
Type members
Classlikes
Attributes
- Supertypes
-
trait HtmlSectiontrait HtmlMultiLinetrait HtmlUnvoidtrait HtmlElemtrait XmlElemLiketrait XConclass Objecttrait Matchableclass AnyShow all
- Self type
-
CoordSystem.type
Attributes
- Supertypes
-
trait RectCompoundtrait RectangleCompoundtrait PolygonCompoundtrait ShapeCompoundtrait NoCanvElemtrait RectGraphictrait ShapeGraphicOrdinaledtrait OrdinaledElemtrait OrdinalEdgePointstrait RectangleGraphictrait ShapeGraphicCentredtrait CentredElemtrait WithCentretrait PolygonGraphictrait ShapeGraphictrait GraphicBoundedtrait BoundedElemtrait GraphicElemtrait GeomElemclass Objecttrait Matchableclass AnyShow all
- Self type
-
GridGraphic1.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
The state of a simultaneous turn tile grid scenario.
The state of a simultaneous turn tile grid scenario.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait HSysTurnScentrait DLessScenobject DLessScen1object DLessScen2trait G1HScenobject G1HScen1object G1HScen10object G1HScen2object G1HScen3object G1HScen4object G1HScen7object G1HScen8object G1HScen9trait G2HScenobject G2HScen1object G2HScen2object G2HScen3object G2HScen4trait BCScenobject BCScen1object BCScen2trait CivScentrait CivScenStartobject Civ1object Civ2trait DiscovScenobject DiscovScen1object DiscovScen2trait IndRevScenobject IndRevScen1object IndRevScen2trait SorsScenobject SorsScen1trait WW1Scenobject WW1Scen1object WW1Scen2trait WW2Scenobject WW2Scen1object WW2Scen2trait ZugScentrait ZugScenStartobject Zug1object Zug2object Zug3trait SqGridScentrait G1SScentrait G1SqScenStartobject G1SScen1object G1SScen2object G1SScen3trait G2SqScentrait G2SqScenStartobject G2SScen1object G2SScen2object G2SScen3trait ChessLikeScentrait DraughtsScenobject DraughtsStarttrait ChessScenobject ChessStartShow all
An efficient immutable array of optional values mapped to a TGridSys tile grid.
An efficient immutable array of optional values mapped to a TGridSys tile grid.
Attributes
- Supertypes
-
class Any
- Known subtypes
-
trait LayerHcOpt[A]class LayerHcOptGrid[A]class LayerHcOptRow[A]class LayerHcOptSys[A]class SqCenOptLayer[A]
An Array of tile centre data of type A. An appropriate SqGrid or HGrid is required to utilise its functionality.
An Array of tile centre data of type A. An appropriate SqGrid or HGrid is required to utilise its functionality.
Attributes
- Supertypes
-
class Any
- Known subtypes
-
trait LayerHcRef[A]class LayerHcRefRow[A]trait LayerHcRefSys[A]class LayerHcRefGrid[A]class LayerHcRefMulti[A]class SqCenLayer[A]Show all
A tile centre coordinate.
A tile centre coordinate.
Attributes
- Supertypes
-
trait TCenOrSeptrait TCoordtrait TellElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TellInt2trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait Telltrait Persisttrait Pointclass AnyShow all
- Known subtypes
Attributes
- Supertypes
-
trait TCoordtrait TellElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TellInt2trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait Telltrait Persisttrait Pointclass AnyShow all
- Known subtypes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait HexStructclass HCenRowtrait HGridSystrait EGridSystrait EGrid120Sysclass EGrid120Longclass EGrid120LongParttrait EGrid120LongMultiobject Grids120S0E1trait EGrid13Sysclass EGrid13Longclass EGrid13LongParttrait EGrid13LongMultitrait EGrid160Systrait EGrid160LongMultitrait EGrid220Sysclass EGrid220Longclass EGrid220LongParttrait EGrid220LongMultitrait EGrid320Sysclass EGrid320Longclass EGrid320LongParttrait EGrid320LongMultitrait EGrid460Sysclass EGrid460Longclass EGrid460LongParttrait EGrid460LongMultitrait EGrid640Sysclass EGrid640Longclass EGrid640LongParttrait EGrid640LongMultitrait EGrid80Sysclass EGrid80LongFulltrait EGrid80LongMultitrait EGridMegaSysclass EGridMegaLongclass EGridMegaLongParttrait EGridMegaLongMulticlass EGridclass EGridLongclass EGrid160Longclass EGrid160LongPartclass EGrid80LongPartclass EGridLongFullclass EGrid120LongFullclass EGrid13LongFullclass EGrid160LongFullclass EGrid220LongFullclass EGrid320LongFullclass EGrid460LongFullclass EGrid640LongFullclass EGridMegaLongFulltrait EGridLongParttrait EGridLongMultitrait EGridMultitrait HGridclass HGridGenclass HGridRecttrait TGridSystrait SqGridSysclass SqGridobject ChessBoardtrait SqGridMulticlass SqGridsAdjPairtrait TGridtrait TGridMultitrait HGridMultiShow all
A coordinate in a tile grid TGrid. The row is the first field, the column is the second.
A coordinate in a tile grid TGrid. The row is the first field, the column is the second.
Attributes
- Supertypes
-
trait TellElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TellInt2trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait Telltrait Persisttrait Pointclass AnyShow all
- Known subtypes
A TileGrid is a description of an abstract TileGrid. It contains no data for the elements of any particular TileGrid. The Data for TileGrids is stored in flat arrays. The TileGrid gives the dimensions of a tileGrid. It has methods to interpret the data in flat Arrays created for that TileGrid specification. It has methods to map the elements of an Array to the the 2 dimensional geometry of the Tile Grid. On its own a TileGrid can produce the outlines of the grid, coordinates vector positions and other pure mathematical data. Combined with a simple function it can for example produce a Chess board. Combined with a 64 length array it can produce a Chess board position. For anything but the most simple games, you will probably want multiple arrays to describe the game state. The terrain for example may remain invariant, so the terrain data does not need to be reproduced with every move.
A TileGrid is a description of an abstract TileGrid. It contains no data for the elements of any particular TileGrid. The Data for TileGrids is stored in flat arrays. The TileGrid gives the dimensions of a tileGrid. It has methods to interpret the data in flat Arrays created for that TileGrid specification. It has methods to map the elements of an Array to the the 2 dimensional geometry of the Tile Grid. On its own a TileGrid can produce the outlines of the grid, coordinates vector positions and other pure mathematical data. Combined with a simple function it can for example produce a Chess board. Combined with a 64 length array it can produce a Chess board position. For anything but the most simple games, you will probably want multiple arrays to describe the game state. The terrain for example may remain invariant, so the terrain data does not need to be reproduced with every move.
A TileGrid is for use cases where the proportions of the Grid predetermine the proportions of the visual representation, as opposed to a use case where the proportions of the enclosing space are a factor in determining the proportions of the grid. For example the various grid layouts of the Stars on the American flag.
Attributes
- Supertypes
- Known subtypes
-
trait HGridclass HGridGenclass EGridclass EGridLongclass EGrid120Longclass EGrid120LongPartclass EGrid13Longclass EGrid13LongPartclass EGrid160Longclass EGrid160LongPartclass EGrid220Longclass EGrid220LongPartclass EGrid320Longclass EGrid320LongPartclass EGrid460Longclass EGrid460LongPartclass EGrid640Longclass EGrid640LongPartclass EGrid80LongPartclass EGridMegaLongclass EGridMegaLongPartclass EGridLongFullclass EGrid120LongFullclass EGrid13LongFullclass EGrid160LongFullclass EGrid220LongFullclass EGrid320LongFullclass EGrid460LongFullclass EGrid640LongFullclass EGrid80LongFullclass EGridMegaLongFulltrait EGridLongPartclass HGridRectclass SqGridobject ChessBoardShow all
A tile grid system consisting of multiple tile grids.
A tile grid system consisting of multiple tile grids.
Attributes
- Supertypes
- Known subtypes
-
trait HGridMultitrait EGridMultitrait EGridLongMultitrait EGrid120LongMultiobject Grids120S0E1trait EGrid13LongMultitrait EGrid160LongMultitrait EGrid220LongMultitrait EGrid320LongMultitrait EGrid460LongMultitrait EGrid640LongMultitrait EGrid80LongMultitrait EGridMegaLongMultitrait SqGridMulticlass SqGridsAdjPairShow all
A system of tile grids. Can be a single tile grid or a system of multiple tile grids.
A system of tile grids. Can be a single tile grid or a system of multiple tile grids.
Attributes
- Supertypes
- Known subtypes
-
trait HGridSystrait EGridSystrait EGrid120Sysclass EGrid120Longclass EGrid120LongParttrait EGrid120LongMultiobject Grids120S0E1trait EGrid13Sysclass EGrid13Longclass EGrid13LongParttrait EGrid13LongMultitrait EGrid160Systrait EGrid160LongMultitrait EGrid220Sysclass EGrid220Longclass EGrid220LongParttrait EGrid220LongMultitrait EGrid320Sysclass EGrid320Longclass EGrid320LongParttrait EGrid320LongMultitrait EGrid460Sysclass EGrid460Longclass EGrid460LongParttrait EGrid460LongMultitrait EGrid640Sysclass EGrid640Longclass EGrid640LongParttrait EGrid640LongMultitrait EGrid80Sysclass EGrid80LongFulltrait EGrid80LongMultitrait EGridMegaSysclass EGridMegaLongclass EGridMegaLongParttrait EGridMegaLongMulticlass EGridclass EGridLongclass EGrid160Longclass EGrid160LongPartclass EGrid80LongPartclass EGridLongFullclass EGrid120LongFullclass EGrid13LongFullclass EGrid160LongFullclass EGrid220LongFullclass EGrid320LongFullclass EGrid460LongFullclass EGrid640LongFullclass EGridMegaLongFulltrait EGridLongParttrait EGridLongMultitrait EGridMultitrait HGridclass HGridGenclass HGridRecttrait SqGridSysclass SqGridobject ChessBoardtrait SqGridMulticlass SqGridsAdjPairtrait TGridtrait TGridMultitrait HGridMultiShow all
Attributes
- Supertypes
-
trait CmdBarGuitrait CanvasPanelledtrait CanvasUserclass Objecttrait Matchableclass AnyShow all
- Known subtypes
A tile separator coordinate.
A tile separator coordinate.
Attributes
- Supertypes
-
trait TCenOrSeptrait TCoordtrait TellElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TellInt2trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait Telltrait Persisttrait Pointclass AnyShow all
- Known subtypes
A tile direction can be used for a tile step.
A tile direction can be used for a tile step.
Attributes
- Supertypes
- Known subtypes
-
trait HStepLiketrait HStepobject HexDLobject HexDRobject HexLtobject HexRtobject HexULobject HexURobject HStepStaytrait SqStepLiketrait SqSteptrait SqStepDiagobject SqDLobject SqDRobject SqULobject SqURtrait SqStepPerpobject SqDnobject SqLtobject SqRtobject SqUpobject SqStepStaytrait TStepSidedShow all
A tile direction with a tile side.
A tile direction with a tile side.
Attributes
- Supertypes
-
trait TStepLiketrait Int1Elemtrait IntNElemtrait ValueNElemtrait SpecialTclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Tile system graphical projection.
Tile system graphical projection.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait HSysProjectionclass HSysProjectionEarthclass HSysProjectionFlattrait SqSysProjectionclass SqSysProjectionFlattrait TSysProjectionFlatShow all
Produces a flat 2D graphical representation of tile grid system.
Produces a flat 2D graphical representation of tile grid system.
Attributes
- Supertypes
- Known subtypes
-
class HSysProjectionFlatclass SqSysProjectionFlat
A tile vertex coordinate.
A tile vertex coordinate.
Attributes
- Supertypes
-
trait TCoordtrait TellElemInt2trait Int2Elemtrait IntNElemtrait ValueNElemtrait SpecialTtrait TellInt2trait PersistNFixedtrait Persist1Plus[Int]trait PersistNtrait TellNtrait Telltrait Persisttrait Pointclass AnyShow all
Html documentation page for Tiling Module.