summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-10-18 20:59:41 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-10-18 20:59:41 +0200
commit96d7905f7faef941f5454fd2c8b0b50a294fd26c (patch)
tree77377c56ed005fc56dcaad506f0f12bb598fef66 /elm/battlemap/src/Character.elm
parent2805c647010cbcca126ebf162fcbdd691fc72488 (diff)
Borked mouse controls for the navigator, it seems.
Diffstat (limited to 'elm/battlemap/src/Character.elm')
-rw-r--r--elm/battlemap/src/Character.elm7
1 files changed, 5 insertions, 2 deletions
diff --git a/elm/battlemap/src/Character.elm b/elm/battlemap/src/Character.elm
index b0be220..1b4d1a1 100644
--- a/elm/battlemap/src/Character.elm
+++ b/elm/battlemap/src/Character.elm
@@ -3,6 +3,7 @@ module Character exposing
Type,
Ref,
get_ref,
+ get_icon_id,
get_location,
set_location,
get_movement_points,
@@ -25,8 +26,10 @@ type alias Type =
type alias Ref = String
get_ref : Type -> Ref
-get_ref c =
- c.id
+get_ref c = c.id
+
+get_icon_id : Type -> String
+get_icon_id c = c.icon
get_location : Type -> Battlemap.Location.Type
get_location t = t.location