diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 10:02:41 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 10:02:41 +0200 |
commit | 035009b625f45b0e8a499ceaa93b80a1bf69702d (patch) | |
tree | 3d86e163bc5517d2dd2d2fe87c6465477dfefe26 | |
parent | 86fb33c51b587af6d4c9b094cd1d4dd6c80c1104 (diff) | |
download | RustAndDust-035009b625f45b0e8a499ceaa93b80a1bf69702d.zip RustAndDust-035009b625f45b0e8a499ceaa93b80a1bf69702d.tar.gz |
Pawn.roadMarch() -> Pawn.getRoadMarchBonus()
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/SearchBoard.java | 2 | ||||
-rw-r--r-- | 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<Vector3> path = new ArrayDeque<Vector3>(); 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; } |