diff options
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index cdcc637..1885ee3 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -41,7 +41,14 @@ public abstract class Map extends Board public void dispose() { super.dispose(); + clearAll(); + } + + public void clearAll() + { moveAssists.clear(); + activablePawns.clear(); + activatedPawns.clear(); clearPointSet(possiblePaths); clearPointVector(possibleMoves); clearPointVector(possibleTargets); @@ -200,13 +207,6 @@ public abstract class Map extends Board clearPointSet(possiblePaths); } - public void clearPossibleTargetsMovesAssists() - { - clearPointSet(possiblePaths); - clearPointVector(possibleMoves); - clearPointVector(possibleTargets); - } - public int movePawn(Pawn pawn, GridPoint2 from, Orientation o) { int cost = getPathCost(pawn, 0); |