2020-06-11 20:42:59 +01:00
|
|
|
package atlas
|
2020-06-07 18:38:46 +01:00
|
|
|
|
|
|
|
const (
|
2020-06-25 23:27:07 +01:00
|
|
|
TileEmpty = byte(' ')
|
|
|
|
TileRover = byte('R')
|
|
|
|
TileSmallRock = byte('o')
|
|
|
|
TileLargeRock = byte('O')
|
2020-06-07 18:38:46 +01:00
|
|
|
)
|
2020-06-25 23:27:07 +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
|
|
|
|
}
|