diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-24 16:05:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-24 16:05:03 +0200 |
commit | 45cd3556d32e2ca11010e290486d6204b9149b3e (patch) | |
tree | 5ccfb726d60e5239770f3b05c4ba4b1c1e1eb424 /core/src/ch/asynk/tankontank/game | |
parent | 45c07ef8f9506320858140bb329c34d9edd10ec7 (diff) | |
download | RustAndDust-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.java | 6 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 11 |
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) |