summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-05 10:32:18 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-05 10:32:18 +0200
commita61c81b59c78a3066113da328f9cb42b3022f187 (patch)
tree48ff733dee243fb9e3e6906eb37d3436768b2cce /core
parentad84b51a6b683f92e219929e1b32f3414310771a (diff)
downloadRustAndDust-a61c81b59c78a3066113da328f9cb42b3022f187.zip
RustAndDust-a61c81b59c78a3066113da328f9cb42b3022f187.tar.gz
Hex: remove boolean hasTargetsFor(Pawn pawn)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java13
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;
- }
}