summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:53:19 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:53:19 +0200
commite5abedba3bf505107ae4946b591f10f7299ea9ef (patch)
tree4653219cf143dec6fb3b26985e60ff43b337e4ba /core/src/ch/asynk/tankontank/engine
parent4aca08fca0c250a917968e0653857817652a3186 (diff)
downloadRustAndDust-e5abedba3bf505107ae4946b591f10f7299ea9ef.zip
RustAndDust-e5abedba3bf505107ae4946b591f10f7299ea9ef.tar.gz
Board/Tile: add protected default constructor needed for test unit
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java4
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java4
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;