Documentation
¶
Index ¶
Constants ¶
View Source
const ( Air Material = "." Rock = "#" Sand = "o" Source = "+" SandPath = "~" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
type Grid ¶
type Grid struct { Min Coordinate Max Coordinate // contains filtered or unexported fields }
func New ¶
func New(source Coordinate) *Grid
func (*Grid) Get ¶
func (g *Grid) Get(pos Coordinate) Material
func (*Grid) Set ¶
func (g *Grid) Set(pos Coordinate, mat Material)
type Path ¶
type Path []Coordinate
Click to show internal directories.
Click to hide internal directories.