summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index 6243cf6..fb4304a 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -30,15 +30,24 @@ public abstract class Pawn implements Drawable, Disposable
public abstract int getMovementPoints();
public abstract int getRoadMarchBonus();
+ public abstract int getAngleOfAttack();
+ public abstract int getAttackRangeFrom(Tile tile);
+
public abstract boolean isHq();
public abstract boolean isUnit();
public abstract boolean isEnemy(Pawn other);
+
public abstract boolean canMove();
public abstract boolean canRotate();
public abstract boolean canAttack();
public abstract boolean canAttack(Pawn other);
- public abstract int getAngleOfAttack();
- public abstract int getAttackRangeFrom(Tile tile);
+
+ public abstract void move(int cost);
+ public abstract void rotate(Orientation o);
+ public abstract void attack(Pawn target);
+
+ public abstract void reset();
+ public abstract void revertLastMove();
protected Pawn()
{