summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-05-09 22:07:36 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-05-09 22:07:36 +0200
commitbeceea45a9840c306f8db79d4d02db400bd6426c (patch)
tree5468c43fcf27112ec7170392bd38dc5df9d1539a /src/shared/battle-map/BattleMap/Struct/Marker.elm
parentc61ecd8b3c9a5e9354a4cd9c3a66650b9057332b (diff)
Adds danger zone calculation.
Diffstat (limited to 'src/shared/battle-map/BattleMap/Struct/Marker.elm')
-rw-r--r--src/shared/battle-map/BattleMap/Struct/Marker.elm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/battle-map/BattleMap/Struct/Marker.elm b/src/shared/battle-map/BattleMap/Struct/Marker.elm
index 21a1731..53204cb 100644
--- a/src/shared/battle-map/BattleMap/Struct/Marker.elm
+++ b/src/shared/battle-map/BattleMap/Struct/Marker.elm
@@ -1,9 +1,11 @@
module BattleMap.Struct.Marker exposing
(
Type,
+ DataType,
new,
get_locations,
set_locations,
+ get_data,
is_in_locations,
decoder,
encode
@@ -84,6 +86,9 @@ get_locations marker = marker.locations
set_locations : (Set.Set BattleMap.Struct.Location.Ref) -> Type -> Type
set_locations locations marker = {marker | locations = locations}
+get_data : Type -> DataType
+get_data marker = marker.data
+
is_in_locations : BattleMap.Struct.Location.Ref -> Type -> Bool
is_in_locations loc_ref marker = (Set.member loc_ref marker.locations)