aboutsummaryrefslogtreecommitdiff
path: root/src/Tile/TileOnBoard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tile/TileOnBoard.ts')
-rw-r--r--src/Tile/TileOnBoard.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Tile/TileOnBoard.ts b/src/Tile/TileOnBoard.ts
index fb0817c..374ae95 100644
--- a/src/Tile/TileOnBoard.ts
+++ b/src/Tile/TileOnBoard.ts
@@ -16,9 +16,17 @@ export default class TileOnBoard extends Tile {
y: number;
}
- constructor(center: Feature, sides: [Feature, Feature, Feature, Feature], shield = false, orientation = 0) {
+ constructor(
+ center: Feature,
+ sides: [Feature, Feature, Feature, Feature],
+ shield = false,
+ position = { x: 0, y: 0 },
+ orientation = 0
+ ) {
super(center, sides, shield);
+ this.position = position;
this.orientation = orientation;
+ this.neighbors = [null, null, null, null];
}
getSide(direction: Direction) {