diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/Board.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Board.java b/core/src/ch/asynk/rustanddust/engine/Board.java index e4aba6d..fb77dd8 100644 --- a/core/src/ch/asynk/rustanddust/engine/Board.java +++ b/core/src/ch/asynk/rustanddust/engine/Board.java @@ -65,6 +65,8 @@ public abstract class Board implements Disposable, Animation protected SelectedTile selectedTile; + abstract protected Config getConfig(); + protected Board(int cols, int rows) { // add a frame of OFFMAP Tiles @@ -74,10 +76,10 @@ public abstract class Board implements Disposable, Animation initSides(); } - public Board(TileBuilder tileBuilder, Config cfg, Texture boardTexture, SelectedTile selectedTile) + public Board(TileBuilder tileBuilder, Texture boardTexture, SelectedTile selectedTile) { board = new Sprite(boardTexture); - this.cfg = cfg; + this.cfg = getConfig(); // add a frame of OFFMAP Tiles this.cols = (cfg.cols + 2); this.rows = (cfg.rows + 2); |