summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-10-29 14:11:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-10-29 14:11:25 +0100
commit7dd29657c3f612af114f65dc1d74988e2153f283 (patch)
tree2e83cf9d3dbdca232ae01d8168804716acb63d6e /core
parent7680066681053d815b94dab8211a816cb995a3d7 (diff)
downloadRustAndDust-7dd29657c3f612af114f65dc1d74988e2153f283.zip
RustAndDust-7dd29657c3f612af114f65dc1d74988e2153f283.tar.gz
Pawn: add isClearAttack()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Pawn.java7
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()