summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-29 12:27:23 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-29 12:27:23 +0100
commit57c22d8db44596f5e4699e5449e0e184d36d2730 (patch)
tree7c277f059304d3baa622d1269f193a3b2997cbdb /core/src/ch
parentc10a6b65595e4b6611b9852862700e1fac37c4fa (diff)
downloadRustAndDust-57c22d8db44596f5e4699e5449e0e184d36d2730.zip
RustAndDust-57c22d8db44596f5e4699e5449e0e184d36d2730.tar.gz
Map: code reorder
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index ce587a1..9e210d4 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -88,6 +88,16 @@ public abstract class Map extends Board
return buildPossibleMoves(pawn, possibleMoves);
}
+ public int buildPossiblePaths(Pawn pawn, Hex to)
+ {
+ return buildPossiblePaths(pawn, to, possiblePaths);
+ }
+
+ public int possiblePathsPointToggle(Hex hex)
+ {
+ return possiblePathsFilterToggle(hex, possiblePaths);
+ }
+
public int buildPossibleTargets(Pawn pawn, Iterator<Pawn> foes)
{
if (!pawn.canAttack()) {
@@ -141,16 +151,6 @@ public abstract class Map extends Board
activatedPawns.clear();
}
- public int buildPossiblePaths(Pawn pawn, Hex to)
- {
- return buildPossiblePaths(pawn, to, possiblePaths);
- }
-
- public int possiblePathsPointToggle(Hex hex)
- {
- return possiblePathsFilterToggle(hex, possiblePaths);
- }
-
public boolean attackPawn(Pawn pawn, final Pawn target, int dice)
{
int activatedUnits = activatedPawns.size();