diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-05 10:32:18 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-05 10:32:18 +0200 |
commit | a61c81b59c78a3066113da328f9cb42b3022f187 (patch) | |
tree | 48ff733dee243fb9e3e6906eb37d3436768b2cce /core/src/ch/asynk/tankontank/game | |
parent | ad84b51a6b683f92e219929e1b32f3414310771a (diff) | |
download | RustAndDust-a61c81b59c78a3066113da328f9cb42b3022f187.zip RustAndDust-a61c81b59c78a3066113da328f9cb42b3022f187.tar.gz |
Hex: remove boolean hasTargetsFor(Pawn pawn)
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index 59cc9d3..962f104 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -6,7 +6,6 @@ import com.badlogic.gdx.graphics.g2d.TextureAtlas; import ch.asynk.tankontank.engine.Pawn; import ch.asynk.tankontank.engine.Tile; -import ch.asynk.tankontank.engine.Board; import ch.asynk.tankontank.engine.Orientation; public class Hex extends Tile @@ -94,16 +93,4 @@ public class Hex extends Tile return c; } - - @Override - public boolean hasTargetsFor(Pawn pawn) - { - if (!hasUnits()) return false; - - Iterator<Pawn> itr = stack.iterator(); - while(itr.hasNext()) - if (itr.next().isEnemy(pawn)) return true; - - return false; - } } |