diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-11 22:41:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-11 22:41:03 +0200 |
commit | 1d9cc6e3e1064b412bd42db34f9dd0041d1f097b (patch) | |
tree | 024d2f51ca3ca778214fb4a2d54d9fea306ec085 /core/src/ch/asynk/tankontank/game | |
parent | 84c87829b871d2e700af5f3304e1f72cc21fa54a (diff) | |
download | RustAndDust-1d9cc6e3e1064b412bd42db34f9dd0041d1f097b.zip RustAndDust-1d9cc6e3e1064b412bd42db34f9dd0041d1f097b.tar.gz |
Map: clearPossibleTargetsMovesAssists() -> clearAll() and does it
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-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); |