summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-22 13:46:32 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-22 13:46:32 +0200
commit2d20dc042a386bc9f66bc5f535403227f9acf1b1 (patch)
tree49e529ff4e12841d160627d9853c088ba0dd637b /client/elm/battlemap/src/Character.elm
parent0d5fba42a1597e5a43266c071776e7acf58071e2 (diff)
No more import ... exposing.
It got too confusing.
Diffstat (limited to 'client/elm/battlemap/src/Character.elm')
-rw-r--r--client/elm/battlemap/src/Character.elm15
1 files changed, 8 insertions, 7 deletions
diff --git a/client/elm/battlemap/src/Character.elm b/client/elm/battlemap/src/Character.elm
index 5c64d45..6b6a7c7 100644
--- a/client/elm/battlemap/src/Character.elm
+++ b/client/elm/battlemap/src/Character.elm
@@ -1,18 +1,19 @@
-module Character exposing (Character, CharacterRef, to_comparable)
+module Character exposing (Type, Ref, get_ref)
-import Battlemap.Location exposing (Location)
+import Battlemap.Location
-type alias Character =
+type alias Type =
{
id : String,
name : String,
icon : String,
portrait : String,
- location : Location,
+ location : Battlemap.Location.Type,
movement_points : Int
}
-type alias CharacterRef = String
-to_comparable : Character -> CharacterRef
-to_comparable c =
+type alias Ref = String
+
+get_ref : Type -> Ref
+get_ref c =
c.id