aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-04-16 14:50:58 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-04-16 14:50:58 +0200
commit25b3cae5f297c9fd9e5ea9e6368006f2d74a61c3 (patch)
treef24e0306e2f8e17f5cff6c80fd0b4e934e654978 /src/battlemap/src/ElmModule/Update.elm
parent4029aa799a5a3fcb392422f44ef2d08357fb128a (diff)
downloadtacticians-client-25b3cae5f297c9fd9e5ea9e6368006f2d74a61c3.zip
tacticians-client-25b3cae5f297c9fd9e5ea9e6368006f2d74a61c3.tar.bz2
Adds a button for attack without moving.
Diffstat (limited to 'src/battlemap/src/ElmModule/Update.elm')
-rw-r--r--src/battlemap/src/ElmModule/Update.elm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/battlemap/src/ElmModule/Update.elm b/src/battlemap/src/ElmModule/Update.elm
index 22217bf..36270a4 100644
--- a/src/battlemap/src/ElmModule/Update.elm
+++ b/src/battlemap/src/ElmModule/Update.elm
@@ -6,6 +6,7 @@ module ElmModule.Update exposing (update)
import Struct.Event
import Struct.Model
+import Update.AttackWithoutMoving
import Update.ChangeScale
import Update.DisplayCharacterInfo
import Update.EndTurn
@@ -28,6 +29,9 @@ update event model =
new_model = (Struct.Model.clear_error model)
in
case event of
+ Struct.Event.AttackWithoutMovingRequest ->
+ (Update.AttackWithoutMoving.apply_to new_model)
+
(Struct.Event.DirectionRequested d) ->
(Update.RequestDirection.apply_to new_model d)