From ef5ddce27cc4c24fd7278f55613633be62a8e3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 21 Sep 2014 03:44:56 +0200 Subject: Tile#remove(Pawn) return stack size --- core/src/ch/asynk/tankontank/engine/Tile.java | 2 +- 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 -- cgit v1.1-2-g2b99