summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-25 10:02:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-25 10:02:41 +0200
commit035009b625f45b0e8a499ceaa93b80a1bf69702d (patch)
tree3d86e163bc5517d2dd2d2fe87c6465477dfefe26 /core/src
parent86fb33c51b587af6d4c9b094cd1d4dd6c80c1104 (diff)
downloadRustAndDust-035009b625f45b0e8a499ceaa93b80a1bf69702d.zip
RustAndDust-035009b625f45b0e8a499ceaa93b80a1bf69702d.tar.gz
Pawn.roadMarch() -> Pawn.getRoadMarchBonus()
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java2
-rw-r--r--core/src/ch/asynk/tankontank/engine/SearchBoard.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java2
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;
}