diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-10-29 14:11:25 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-10-29 14:11:25 +0100 |
commit | 7dd29657c3f612af114f65dc1d74988e2153f283 (patch) | |
tree | 2e83cf9d3dbdca232ae01d8168804716acb63d6e /core/src/ch/asynk | |
parent | 7680066681053d815b94dab8211a816cb995a3d7 (diff) | |
download | RustAndDust-7dd29657c3f612af114f65dc1d74988e2153f283.zip RustAndDust-7dd29657c3f612af114f65dc1d74988e2153f283.tar.gz |
Pawn: add isClearAttack()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/Pawn.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Pawn.java b/core/src/ch/asynk/rustanddust/engine/Pawn.java index f95347f..09b49aa 100644 --- a/core/src/ch/asynk/rustanddust/engine/Pawn.java +++ b/core/src/ch/asynk/rustanddust/engine/Pawn.java @@ -159,7 +159,12 @@ public abstract class Pawn implements Moveable, Disposable public boolean isFlankAttack() { - return (attack.isClear && attack.isFlank); + return (isClearAttack() && attack.isFlank); + } + + public boolean isClearAttack() + { + return attack.isClear; } public int attackDistance() |