summaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'elm/battlemap/src/Character.elm')
-rw-r--r-- | elm/battlemap/src/Character.elm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/elm/battlemap/src/Character.elm b/elm/battlemap/src/Character.elm new file mode 100644 index 0000000..41cfc84 --- /dev/null +++ b/elm/battlemap/src/Character.elm @@ -0,0 +1,20 @@ +module Character exposing (Type, Ref, get_ref) + +import Battlemap.Location + +type alias Type = + { + id : String, + name : String, + icon : String, + portrait : String, + location : Battlemap.Location.Type, + movement_points : Int, + atk_dist : Int + } + +type alias Ref = String + +get_ref : Type -> Ref +get_ref c = + c.id |