diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-29 23:53:19 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-29 23:53:19 +0200 |
commit | e5abedba3bf505107ae4946b591f10f7299ea9ef (patch) | |
tree | 4653219cf143dec6fb3b26985e60ff43b337e4ba /core/src/ch | |
parent | 4aca08fca0c250a917968e0653857817652a3186 (diff) | |
download | RustAndDust-e5abedba3bf505107ae4946b591f10f7299ea9ef.zip RustAndDust-e5abedba3bf505107ae4946b591f10f7299ea9ef.tar.gz |
Board/Tile: add protected default constructor needed for test unit
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 871f9e8..b0c8d10 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -152,6 +152,10 @@ public abstract class Board implements Disposable protected final List<GridPoint2> areaPoints = new Vector<GridPoint2>(10); + protected Board() + { + } + public Board(TileBuilder tileBuilder, Config cfg, Texture texture) { image = new Image(texture); diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index aaa6029..c366508 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -23,6 +23,10 @@ public abstract class Tile implements Drawable public abstract boolean hasTargetsFor(Pawn pawn); public abstract boolean isOffMap(); + protected Tile() + { + } + public Tile(float x, float y, TextureAtlas atlas) { this.stack = null; |