| File | Language | Author(s) | Copyright |
|---|---|---|---|
| chitEngine.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| chitGeometry.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| counterGrid.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| counterStack.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| gameSessionManager.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| gameSessionPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| hexGroup.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| hexMapInfo.js | Javascript | Kenneth F. Guerin | Copyright © 2018-2024, Brick Mill Games, LLC, all rights reserved. |
| hexRegionHighlight.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| nato.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| oobTableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| oobTableauUnitLayout.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| svgIcons.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| tableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| tfx.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| tiledMap.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| trex.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| unitCounter.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| ww2tac.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| chitEngine.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| chitGeometry.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| counterGrid.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| counterStack.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| gameSessionManager.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| gameSessionPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| hexGroup.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| hexMapInfo.js | Javascript | Kenneth F. Guerin | Copyright © 2018-2024, Brick Mill Games, LLC, all rights reserved. |
| hexRegionHighlight.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
| nato.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| oobTableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| oobTableauUnitLayout.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| svgIcons.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| tableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| tfx.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| tiledMap.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| trex.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
| unitCounter.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
| ww2tac.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
The TFX namespace encapsulates all definitions related to the family of TFX classes used for TOCS application development.
CTAB <read-only>
RECT <read-only>
RRECT <read-only>
TFX.crossIconFactory() → String
This function builds the cross icon using a path element.TFX.headstoneIconFactory() → String
This function builds the headstone icon using a path element.TFX.oobIconFactory() → String
This function builds the oob icon using a path element.TFX.redCrossIconFactory() → String
This function builds the red cross icon using a path element.| File | Language | Author(s) | Copyright |
|---|---|---|---|
| chitEngine.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves as the foundation of counter drawing operations.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| chitGeometry.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves as the foundation of counter drawing operations.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| counterGrid.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class is the CounterGrid UI element: <counter-grid>
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| counterStack.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class is the CounterStack UI element: <counter-stack>.
$manageChildren() <private>
This private method is used to manage the stack's children based on its current mode and offset parameters.| File | Language | Author(s) | Copyright |
|---|---|---|---|
| gameSessionManager.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
This class is the GameSessionManager
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| gameSessionPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
This class is the GameSessionPane UI element: <game-session-pane>
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| hexGroup.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
This class is a hex group manager.
This class handles the definition, management and operations related to groups of hexes, be they single-hex "groups" or regions.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| hexMapInfo.js | Javascript | Kenneth F. Guerin | Copyright © 2018-2024, Brick Mill Games, LLC, all rights reserved. |
This class handles all hexagon map operations.
new TFX.HexMapInfo(cols, rows, hborder, vborder) ⇏ ArgumentError
$directionToInteger(direction) → Integer <private>
This private method converts a valid wide hex edge direction string to an integer.buildHexPathDescriptor(params) → Array<Hash>
This method returns an array of hex path segment information.calcHexPathBounds(params) → Hash
This method hexcol-based bounds information to aid in hex-in-region detection logiccoordAt(hexcol, hexrow) → Object
This method returns the center point of the specified hex tiledraw(callback)
This method uses a callback function to draw the hex map for each hex.formatHexPathDescriptor(desc, formatter, needs_bbox) → Hash ⇏ ArgumentError
This method converts a hex path descriptor to a different type of data set.getAdjacentTiles(hexcol, hexrow) → Array<Hash or Null>] the coordinates of the six adjacent hex tiles, in order of [ col,row-1
This method returns an array of hex tile coordinates of the six adjacent hex tiles.getAlignment(hexcol, hexrow, hexcol2, hexrow2) → Hash or Null
This method determines if two hexes are aligned with each other along the six hexrow directionsgetSpineAlignment(hexcol, hexrow, hexcol2, hexrow2, extended) → Hash or Null
This method determines if two hexes are aligned with each other along the two horizontal or six hex-spine directionshcsFor(hexcol, hexrow, granularity) → Cartesia.HexCoordinateSystem
This method returns a hex coordinate system tied to a specific hex map tile.hexesAway(hexcol, hexrow, to_hexcol, to_hexrow) → Number
This method returns the number of hexes away one hex tile is from anotherhextantsAway(hexcol, hexrow, to_hexcol, to_hexrow) → Array<String>] the hextant locations of the distant hex tile from the origin: [ 'nw','w','sw','ne','e','se'
This method returns the hextants where one hex tile is from anotherisAdjacent(hexcol, hexrow, hexcol2, hexrow2) → Integer
This method determines if two hexes are adjacent to each othermakeCirclePath(params, needs_bbox) → Hash
This method returns a circular path description based on the incoming single-hex hex region parameters.makeHexPath(params, needs_bbox) → Hash
This method returns a hex path description based on the incoming hex region parameters.makeHexPathCoords(params, needs_bbox) → Hash
This method returns a hex path description based on the incoming hex region parameters.makePathInHex(params, needs_bbox) → Hash
This method returns a circular path description based on the incoming single-hex hex region parameters.mapdims() → Array<Number>
This method returns the map dimensions.nearestHexTo(point) → Object
This method returns the nearest hex tile to a given pointtraceHexPathDescriptor(params, debug) → Array<Hash>
This method returns an array of hex path segment information.visitNextTile(hexcol, hexrow, direction, unclipped) → Array<Hash> or Null
This method returns the next tile in a given direction.visitTiles(hexcol, hexrow, n, direction, callback) → Array<Hash> or Null
This method returns an array of hex tile coordinates ranging n hexes out in a given direction and including the target tile.| File | Language | Author(s) | Copyright |
|---|---|---|---|
| hexRegionHighlight.js | Javascript | Kenneth F. Guerin | Copyright © 2024 Brick Mill Games, LLC, All rights reserved. |
This class is a hex region highlight HTML element
This class handles the definition, management and operations related to groups of hexes, be they single-hex "groups" or regions.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| nato.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves as the foundation of counter drawing operations using NATO symbology.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| oobTableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves to create a base layer for OOB Tableaux.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| oobTableauUnitLayout.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves to help organize and draw unit graphics on the OOB tableau.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| trex.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves as the TOCS application resource manager.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| tableauPane.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class is the TableauPane UI element: <tableau-pane>
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| tiledMap.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This class is the TiledMap UI element: <tiled-map>
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| unitCounter.js | Javascript | Kenneth F. Guerin | Copyright © 2023-2024 Brick Mill Games, LLC, All rights reserved. |
This class serves as the foundation of TOCS unit elements in the DOM.
| File | Language | Author(s) | Copyright |
|---|---|---|---|
| ww2tac.js | Javascript | Kenneth F. Guerin | Copyright © 2020-2024 Brick Mill Games, LLC, All rights reserved. |
This namespace contains all information necessary to manage TOCS WWII tactical scale games.
gtab <read-only>
drawAARof(state, chit)
This function is used to draw a unit onto a given chit.drawArmDots(state, chit)
This function is used to draw a unit onto a given chit.drawGrade(state, chit)
This function is used to draw a unit onto a given chit.drawPatch(state, chit)
This function is used to draw a unit onto a given chit.drawRating(state, chit)
This function is used to draw a unit onto a given chit.drawStepDiamonds(state, chit)
This function is used to draw a unit onto a given chit.drawUnit(state, chit)
This function is used to draw a unit onto a given chit.getCounterProperties(state) → Object
This function is used to get the unit's counter properties.getEquipmentInfo(state) → Object or Null
This function is used to get the unit's equipment information based on its unit state.getNatoSize(size) → String
This function is used to convert a NATO size from one format to another. It is usually used to convert capitalized spreadsheet-formatted information into a non-capitalized internal format, such as 'Division' to 'division'. It also handles useful short-hand notations, such as 'Div' to 'division'.getNatoSubtype(subtype) → String
This function is used to convert a NATO subtype from one format to another. It is usually used to convert capitalized spreadsheet-formatted information into a non-capitalized internal format, such as 'Mechanized' to 'mechanized'. It also handles useful short-hand notations, such as 'Mech' to 'mechanized'.getNatoType(type) → String
This function is used to convert a NATO type from one format to another. It is usually used to convert capitalized spreadsheet-formatted information into a non-capitalized internal format, such as 'Infantry' to 'infantry'. It also handles useful short-hand notations, such as 'Inf' to 'infantry'.parseNato(state, isHQ) → Object
This function is used to parse a unit's state to gain NATO information.