Declaration
public Grid(
int width,
int height,
bool neighborsAtEdges = false
)Summary
Constructs a
Chamf.Grid that forms a rectangle. Along the perimeter all the cells will be hexagons.
Only squares internal to these hexagons are included.
Parameters
| int | width |
The number of squares in the x direction. |
| int | height |
The number of squares in the y direction. |
| bool | neighborsAtEdges |
If the grid is rendered with Chamf.VerticesAtEdges(int, int, int, int), some cells along the edge
become neighbors when they would otherwise not be. Setting this to true will designate them as
neighbors in this structure. |