Stores grid locations of all cells, indexed by cell. This can be used to retrieve the location of any cell in the map.
Note: Methods returning grids from this data should always return shallow copies.
Stores the cells indexed by grid location. Use Map3D.gridToHash to generate the hash string used for indexing.
Note: Methods returning sets from this data should always return shallow copies.
A constant containing objects that represent the four cardinal directions.
Note: This can be used when creating Hop components.
Adds a cell to the specified grid location, and returns a Set containing the cells at that location.
The map cell to be added.
The grid location to add the cell to.
Returns the grid location of a cell in the map.
The map cell to obtain the grid from.
Gets the cells at a specified grid location.
The grid location to retrieve cells from.
Moves a cell to the specified grid location, and returns a Set containing the cells at that location.
The map cell to be moved.
The grid location to move the cell to.
Removes a cell from the specified grid location, and returns a Set containing the cells at that location.
The map cell to be removed.
The grid location to remove the cell from.
Generated using TypeDoc
A manager used for storing objects of type
T
as "cells" and providing methods to manipulate them.