diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-22 10:02:08 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-22 10:02:08 +0200 |
commit | d8cd052324e5a68d9c5cc730e331865cafc3322d (patch) | |
tree | 4e994ba69ceac4096d21c3bc98ff567647fd5cae /core/src/ch/asynk/tankontank/game | |
parent | 77f33564ba4ca8d6a4e5de32ba813b22053724f3 (diff) | |
download | RustAndDust-d8cd052324e5a68d9c5cc730e331865cafc3322d.zip RustAndDust-d8cd052324e5a68d9c5cc730e331865cafc3322d.tar.gz |
Pawn.Orientation + Tile.Side -> Board.Orientation
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index ae6499e..c2b9be6 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -3,6 +3,7 @@ package ch.asynk.tankontank.game; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import ch.asynk.tankontank.engine.Tile; +import ch.asynk.tankontank.engine.Board; public class Hex extends Tile { @@ -31,9 +32,9 @@ public class Hex extends Tile this.roads = roads; } - public int costFrom(Side side) + public int costFrom(Board.Orientation side) { - if (side.v == (roads & side.v)) return 1; + if (side.s == (roads & side.s)) return 1; int c = 0; switch(terrain) { |