summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-21 03:44:56 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-21 03:44:56 +0200
commitef5ddce27cc4c24fd7278f55613633be62a8e3ae (patch)
tree2afc3e155a61f254bef3acd75e7c73cdf3f014f3 /core/src/ch
parent7be8400f7e3af784fe6ecad3ea225c33e0807166 (diff)
downloadRustAndDust-ef5ddce27cc4c24fd7278f55613633be62a8e3ae.zip
RustAndDust-ef5ddce27cc4c24fd7278f55613633be62a8e3ae.tar.gz
Tile#remove(Pawn) return stack size
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java2
-rw-r--r--core/src/ch/asynk/tankontank/engine/TileOverlays.java3
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