Documentation ¶
Index ¶
- Constants
- type Cell
- type CellC
- type Collectable
- type Coord
- type Map
- func (m *Map) AddDanger(c Coord)
- func (m *Map) GetAdjacentCells(c Coord) (adjs []Coord)
- func (m *Map) GetAdjacentPositions(pos Coord) (adjs []Coord)
- func (m *Map) GetBackwardPosition(pos Coord) (f Coord)
- func (m *Map) GetForwardPosition(pos Coord) (f Coord)
- func (m *Map) MarkWall(c Coord, forward bool) bool
- func (m *Map) Print(pos Coord)
- func (m *Map) StackPop() (c Coord, success bool)
- func (m *Map) StackPush(c Coord)
- func (m *Map) StackRandomPop() (c Coord, success bool)
- func (m *Map) StackRemove(c Coord)
- func (m *Map) Tick() bool
- func (m *Map) VisitCell(c Coord, senses uint) bool
Constants ¶
View Source
const ( NORTH = iota EAST SOUTH WEST )
View Source
const ( UNKNOWN = iota SAFE WALL DANGEROUS TELEPORT HOLE EMPTY GOLD POWERUP )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collectable ¶
type Map ¶
type Map struct { Cells [][]Cell Height, Width int ExploreStack []Coord GoldCells map[CellC]*int PowerupCells map[CellC]*int DangerCells map[CellC]*Cell }
func (*Map) GetAdjacentCells ¶
func (*Map) GetAdjacentPositions ¶
func (*Map) GetBackwardPosition ¶
func (*Map) GetForwardPosition ¶
func (*Map) StackRandomPop ¶
func (*Map) StackRemove ¶
Click to show internal directories.
Click to hide internal directories.