summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-24 16:05:03 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-24 16:05:03 +0200
commit45cd3556d32e2ca11010e290486d6204b9149b3e (patch)
tree5ccfb726d60e5239770f3b05c4ba4b1c1e1eb424 /core/src/ch/asynk/tankontank/game
parent45c07ef8f9506320858140bb329c34d9edd10ec7 (diff)
downloadRustAndDust-45cd3556d32e2ca11010e290486d6204b9149b3e.zip
RustAndDust-45cd3556d32e2ca11010e290486d6204b9149b3e.tar.gz
Tile.roadMarchBonus() -> Pawn.roadMarch()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java6
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java11
2 files changed, 10 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 6666e9a..161ed44 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -53,12 +53,6 @@ public class Hex extends Tile
}
@Override
- public int roadMarchBonus(Pawn pawn)
- {
- return 1;
- }
-
- @Override
public boolean road(Board.Orientation side)
{
return (side.s == (roads & side.s));
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 4a9741a..40fb68d 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -16,7 +16,16 @@ public class Unit extends Pawn
public Army army;
@Override
- public int getMvt() { return mp; }
+ public int getMvt()
+ {
+ return mp;
+ }
+
+ @Override
+ public int roadMarch()
+ {
+ return 1;
+ }
// hard tager
public Unit(Army army, boolean hq, int range, int defense, int movementPoints, TextureRegion region, TextureAtlas atlas)