diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 14:46:52 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 15:07:11 +0100 |
commit | f0712396215539d9863af16332a8e7774b3a95a1 (patch) | |
tree | 77042da1328bedd1f1c38cbb27a42b083cef5260 /core/src/ch/asynk | |
parent | 83911aa890a0a53b1eef8a663dadbcce4b537df4 (diff) | |
download | RustAndDust-f0712396215539d9863af16332a8e7774b3a95a1.zip RustAndDust-f0712396215539d9863af16332a8e7774b3a95a1.tar.gz |
Tile: no more default constructor: col and row must be provided
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 4 |
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) |