diff options
Diffstat (limited to 'core')
-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; } |