Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: Grid(int, int, bool)

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

intwidth The number of squares in the x direction.
intheight The number of squares in the y direction.
boolneighborsAtEdges 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.