Documentation ¶
Overview ¶
Package grid contains code for modeling a 2D grid, used as a game board in either orthogonal or isometric orientation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell interface { GridX() int GridY() int Dimensions() CellDimensions Color() uint32 SetColor(uint32) Texture() *sdl.Texture SetTexture(*sdl.Texture) Elevation() int SetElevation(int) Contents() Occupier SetContents(Occupier) ClearContents() IsOccupied() bool }
Cell is a container at a specific position inside a Grid.
type CellDimensions ¶
CellDimensions stores the visual representation data for a cell. X and Y values are the number of pixels from (0,0). W and H are the pixel dimensions of the cell.
Click to show internal directories.
Click to hide internal directories.