rove/pkg/atlas/tile.go

24 lines
394 B
Go
Raw Permalink Normal View History

package atlas
2020-06-07 18:38:46 +01:00
const (
TileEmpty = byte(' ')
TileRover = byte('R')
TileSmallRock = byte('o')
TileLargeRock = byte('O')
2020-06-07 18:38:46 +01:00
)
// BlockingTiles describes any tiles that block
var BlockingTiles = [...]byte{
TileLargeRock,
}
// Check if a tile is a blocking tile
func IsBlocking(tile byte) bool {
for _, t := range BlockingTiles {
if tile == t {
return true
}
}
return false
}