summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-02-03 16:05:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-02-03 16:05:26 +0100
commit543ea773f0cd5576f8c8c169938fbaca580e4109 (patch)
tree75b9ed879fc18e92f478d103d73d85ebdc5694a3 /core/src/ch/asynk/rustanddust/game
parentc0bb2f8f5707f1ffadc21187b41862940cedf6ac (diff)
downloadRustAndDust-543ea773f0cd5576f8c8c169938fbaca580e4109.zip
RustAndDust-543ea773f0cd5576f8c8c169938fbaca580e4109.tar.gz
Unit: add setFired()
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java9
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