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