summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-08 14:46:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-08 15:07:11 +0100
commitf0712396215539d9863af16332a8e7774b3a95a1 (patch)
tree77042da1328bedd1f1c38cbb27a42b083cef5260 /core
parent83911aa890a0a53b1eef8a663dadbcce4b537df4 (diff)
downloadRustAndDust-f0712396215539d9863af16332a8e7774b3a95a1.zip
RustAndDust-f0712396215539d9863af16332a8e7774b3a95a1.tar.gz
Tile: no more default constructor: col and row must be provided
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java
index 37c7199..ffa3b2f 100644
--- a/core/src/ch/asynk/tankontank/engine/Tile.java
+++ b/core/src/ch/asynk/tankontank/engine/Tile.java
@@ -37,8 +37,10 @@ public abstract class Tile implements Drawable, Disposable, Iterable<Pawn>
public abstract boolean atLeastOneMove(Pawn pawn);
public abstract boolean blockLineOfSightFrom(Tile tile);
- protected Tile()
+ protected Tile(int col, int row)
{
+ this.col = col;
+ this.row = row;
}
public Tile(float x, float y, int col, int row, TextureAtlas atlas)