summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2017-10-19 13:30:40 +0200
committernsensfel <SpamShield0@noot-noot.org>2017-10-19 13:30:40 +0200
commite008855086d124f0de14eacc858ecb57d23e371c (patch)
treee3fe94dcf2966d17ac970b4b9cbbf6998c1f34a6 /elm/battlemap/src/Character.elm
parentab299e08cee6ee9b2b122ce87b9bdab3b0dd637c (diff)
Starting a more modular approach for the website.
Diffstat (limited to 'elm/battlemap/src/Character.elm')
-rw-r--r--elm/battlemap/src/Character.elm44
1 files changed, 0 insertions, 44 deletions
diff --git a/elm/battlemap/src/Character.elm b/elm/battlemap/src/Character.elm
deleted file mode 100644
index 1b4d1a1..0000000
--- a/elm/battlemap/src/Character.elm
+++ /dev/null
@@ -1,44 +0,0 @@
-module Character exposing
- (
- Type,
- Ref,
- get_ref,
- get_icon_id,
- get_location,
- set_location,
- get_movement_points,
- get_attack_range
- )
-
-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
-
-get_icon_id : Type -> String
-get_icon_id c = c.icon
-
-get_location : Type -> Battlemap.Location.Type
-get_location t = t.location
-
-set_location : Battlemap.Location.Type -> Type -> Type
-set_location location char = {char | location = location}
-
-get_movement_points : Type -> Int
-get_movement_points char = char.movement_points
-
-get_attack_range : Type -> Int
-get_attack_range char = char.atk_dist