aboutsummaryrefslogtreecommitdiff
path: root/go/game/permanent.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/permanent.go')
-rw-r--r--go/game/permanent.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/go/game/permanent.go b/go/game/permanent.go
index 1f78cb87..9cf8754b 100644
--- a/go/game/permanent.go
+++ b/go/game/permanent.go
@@ -314,3 +314,8 @@ func TileOrContainingPermTile(p Permanent) *Tile {
return tile
}
+
+func AdjacentTiles(p Permanent) []*Tile {
+ m := p.Controller().gameState.Map()
+ return TilesInRange(m, p, 1)
+}