steel-lord/interfaces/gamemap.go
2019-07-24 21:04:21 -07:00

13 lines
345 B
Go

package interfaces
// Our GameMap interface. This provides access to tile state and more.
type GameMap interface {
Width() int
Height() int
IsBlocked(x, y int) bool
IsOpaque(x, y int) bool
Explored(x, y int) bool
SetExplored(x, y int, explored bool)
MakeMap(maxRooms, roomMinSize, roomMaxSize int, entities *[]Entity, maxMonsters int)
}