summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 16:01:04 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 16:01:04 +0200
commit763a7161b17462198803d9026976100b03226cb5 (patch)
tree15b4f3227b626903af2e73a9acc3ef806ef03c34 /core
parent173715662329bf58afca3dcdea3676d2f56a82b7 (diff)
downloadRustAndDust-763a7161b17462198803d9026976100b03226cb5.zip
RustAndDust-763a7161b17462198803d9026976100b03226cb5.tar.gz
add Pawn.Attack public inner class
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index f468b03..3d71e4f 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -22,6 +22,14 @@ import ch.asynk.tankontank.engine.gfx.animations.AnimationSequence;
public abstract class Pawn implements Drawable, Disposable
{
+ public class Attack
+ {
+ int distance;
+ Pawn target;
+ boolean isClear;
+ boolean isFlankAttack;
+ }
+
private static final float MOVE_TIME = 0.4f;
private Vector3 position = new Vector3(0f, 0f, 0f);
@@ -29,6 +37,7 @@ public abstract class Pawn implements Drawable, Disposable
private String name;
private Image image;
private StackedImages overlays;
+ public Attack attack;
public abstract int getMovementPoints();
public abstract int getRoadMarchBonus();