From 543ea773f0cd5576f8c8c169938fbaca580e4109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Feb 2016 16:05:26 +0100 Subject: Unit: add setFired() --- core/src/ch/asynk/rustanddust/game/Unit.java | 9 +++++++-- 1 file 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 -- cgit v1.1-2-g2b99