steel-lord/interfaces/gamemap.go

13 lines
345 B
Go
Raw Normal View History

2019-07-19 21:08:46 -07:00
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)
2019-07-24 21:04:21 -07:00
MakeMap(maxRooms, roomMinSize, roomMaxSize int, entities *[]Entity, maxMonsters int)
2019-07-19 21:08:46 -07:00
}