aboutsummaryrefslogtreecommitdiff
path: root/src/Tile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tile')
-rw-r--r--src/Tile/TileOnBoard.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Tile/TileOnBoard.ts b/src/Tile/TileOnBoard.ts
index 65f3731..b15fcf4 100644
--- a/src/Tile/TileOnBoard.ts
+++ b/src/Tile/TileOnBoard.ts
@@ -10,7 +10,7 @@ export interface Attachment {
export default class TileOnBoard extends Tile {
neighbors: [Tile, Tile, Tile, Tile];
- private orientation: number // amount of 90-degree counter-clockwise rotations from original orientation
+ orientation: number // amount of 90-degree counter-clockwise rotations from original orientation
constructor(center: Feature, sides: [Feature, Feature, Feature, Feature], shield = false, orientation = 0) {
super(center, sides, shield);
@@ -18,7 +18,7 @@ export default class TileOnBoard extends Tile {
}
getSide(direction: Direction) {
- return this.sides[(((this.orientation + direction) % 4) + 4) % 4];
+ return super.getSide(direction + this.orientation);
}
rotate(rotation = 1) {