summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-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