From 035009b625f45b0e8a499ceaa93b80a1bf69702d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 25 Sep 2014 10:02:41 +0200 Subject: Pawn.roadMarch() -> Pawn.getRoadMarchBonus() --- core/src/ch/asynk/tankontank/engine/Pawn.java | 2 +- core/src/ch/asynk/tankontank/engine/SearchBoard.java | 2 +- core/src/ch/asynk/tankontank/game/Unit.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index 7e58a54..90a3d15 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -25,7 +25,7 @@ public abstract class Pawn extends Image implements Disposable private ArrayDeque path = new ArrayDeque(); public abstract int getMvt(); - public abstract int roadMarch(); + public abstract int getRoadMarchBonus(); public abstract boolean isEnemy(Pawn other); public Pawn(TextureRegion pawn, TextureAtlas overlays) diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java index b4b0584..4c16680 100644 --- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java +++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java @@ -91,7 +91,7 @@ public class SearchBoard start.roadMarch = true; stack.push(start); - int roadMarchBonus = pawn.roadMarch(); + int roadMarchBonus = pawn.getRoadMarchBonus(); boolean first = true; diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index d4eaf5b..dc857a6 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -25,7 +25,7 @@ public class Unit extends HeadedPawn } @Override - public int roadMarch() + public int getRoadMarchBonus() { return 1; } -- cgit v1.1-2-g2b99