summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:16:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:16:43 +0100
commit94ddf0defaf09f89bcd2443b00683f2c9b0f7695 (patch)
tree2e500f14a6f0687dc8c477af57e479f4e6bd1e7d /core/src/ch/asynk/tankontank
parent0d437258c4fbb487991f293ca2a70ec2dc175074 (diff)
downloadRustAndDust-94ddf0defaf09f89bcd2443b00683f2c9b0f7695.zip
RustAndDust-94ddf0defaf09f89bcd2443b00683f2c9b0f7695.tar.gz
Tile: remove boolean hasTargetsFor(Pawn)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Tile.java12
1 files changed, 0 insertions, 12 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java
index 735af0e..21c8168 100644
--- a/core/src/ch/asynk/tankontank/engine/Tile.java
+++ b/core/src/ch/asynk/tankontank/engine/Tile.java
@@ -98,18 +98,6 @@ public abstract class Tile implements Drawable, Disposable
return false;
}
- public boolean hasTargetsFor(Pawn pawn)
- {
- if (isEmpty()) return false;
- Iterator<Pawn> itr = iterator();
- while(itr.hasNext()) {
- Pawn target = itr.next();
- if (pawn.canAttack(target)) return true;
- }
-
- return false;
- }
-
public boolean mustBeDrawn()
{
if (!isEmpty()) return true;