diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-30 14:16:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-30 14:16:43 +0100 |
commit | 94ddf0defaf09f89bcd2443b00683f2c9b0f7695 (patch) | |
tree | 2e500f14a6f0687dc8c477af57e479f4e6bd1e7d | |
parent | 0d437258c4fbb487991f293ca2a70ec2dc175074 (diff) | |
download | RustAndDust-94ddf0defaf09f89bcd2443b00683f2c9b0f7695.zip RustAndDust-94ddf0defaf09f89bcd2443b00683f2c9b0f7695.tar.gz |
Tile: remove boolean hasTargetsFor(Pawn)
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 12 |
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; |