summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine/Pawn.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 09:56:57 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 09:56:57 +0100
commit241251019e43daa6170c497e90688f8f104c2f20 (patch)
tree9cb97262330d10b705c8f9eff028b3abf7c759cb /core/src/ch/asynk/tankontank/engine/Pawn.java
parent7c09767469ca69ebac47e2753da8d31bba585d44 (diff)
downloadRustAndDust-241251019e43daa6170c497e90688f8f104c2f20.zip
RustAndDust-241251019e43daa6170c497e90688f8f104c2f20.tar.gz
Attack: cleanup Pawn.engagement->Pawn.attack
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine/Pawn.java')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index f609fb9..00965b3 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -39,7 +39,7 @@ public abstract class Pawn implements Moveable, Disposable
protected String descr;
private Sprite sprite;
private StackedImages overlays;
- protected Attack engagement;
+ protected Attack attack;
protected Move move;
public abstract int getMovementPoints();
@@ -73,8 +73,8 @@ public abstract class Pawn implements Moveable, Disposable
this.prevTile = null;
this.position = new Vector3(0f, 0f, 0f);
this.prevPosition = new Vector3(0f, 0f, 0f);
- this.engagement = new Attack();
- this.engagement.assaulter = this;
+ this.attack = new Attack();
+ this.attack.attacker = this;
}
public Pawn(Faction faction, String name, TextureAtlas pawns, TextureAtlas overlays)
@@ -105,7 +105,7 @@ public abstract class Pawn implements Moveable, Disposable
public void reset()
{
- engagement.reset();
+ attack.reset();
if (move != null) {
move.dispose();
move = null;
@@ -166,7 +166,7 @@ public abstract class Pawn implements Moveable, Disposable
public boolean isFlankAttack()
{
- return (engagement.isClear && engagement.isFlank);
+ return (attack.isClear && attack.isFlank);
}
public Tile getTile()