diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-03 16:05:26 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-03 16:05:26 +0100 |
commit | 543ea773f0cd5576f8c8c169938fbaca580e4109 (patch) | |
tree | 75b9ed879fc18e92f478d103d73d85ebdc5694a3 | |
parent | c0bb2f8f5707f1ffadc21187b41862940cedf6ac (diff) | |
download | RustAndDust-543ea773f0cd5576f8c8c169938fbaca580e4109.zip RustAndDust-543ea773f0cd5576f8c8c169938fbaca580e4109.tar.gz |
Unit: add setFired()
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Unit.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java index 6800040..582a1f5 100644 --- a/core/src/ch/asynk/rustanddust/game/Unit.java +++ b/core/src/ch/asynk/rustanddust/game/Unit.java @@ -278,6 +278,12 @@ public class Unit extends HeadedPawn updateOverlays(); } + public void setFired() + { + hasFired = true; + updateOverlays(); + } + @Override public void move() { @@ -298,8 +304,7 @@ public class Unit extends HeadedPawn @Override public void engage() { - hasFired = true; - updateOverlays(); + setFired(); } @Override |