From 57c22d8db44596f5e4699e5449e0e184d36d2730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Oct 2014 12:27:23 +0100 Subject: Map: code reorder --- core/src/ch/asynk/tankontank/game/Map.java | 20 ++++++++++---------- 1 file 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 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(); -- cgit v1.1-2-g2b99