diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 03:44:56 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-21 03:44:56 +0200 |
commit | ef5ddce27cc4c24fd7278f55613633be62a8e3ae (patch) | |
tree | 2afc3e155a61f254bef3acd75e7c73cdf3f014f3 /core | |
parent | 7be8400f7e3af784fe6ecad3ea225c33e0807166 (diff) | |
download | RustAndDust-ef5ddce27cc4c24fd7278f55613633be62a8e3ae.zip RustAndDust-ef5ddce27cc4c24fd7278f55613633be62a8e3ae.tar.gz |
Tile#remove(Pawn) return stack size
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/TileOverlays.java | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index 66dea74..7c43bd4 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -8,7 +8,7 @@ public interface Tile extends BasicDrawable { public int push(Pawn pawn); - public void remove(Pawn pawn); + public int remove(Pawn pawn); public Pawn getTopPawn(); diff --git a/core/src/ch/asynk/tankontank/engine/TileOverlays.java b/core/src/ch/asynk/tankontank/engine/TileOverlays.java index 57a95d4..8b2f750 100644 --- a/core/src/ch/asynk/tankontank/engine/TileOverlays.java +++ b/core/src/ch/asynk/tankontank/engine/TileOverlays.java @@ -29,9 +29,10 @@ public abstract class TileOverlays implements Tile } @Override - public void remove(Pawn pawn) + public int remove(Pawn pawn) { stack.remove(pawn); + return stack.size(); } @Override |