From 96d7905f7faef941f5454fd2c8b0b50a294fd26c Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 18 Oct 2017 20:59:41 +0200 Subject: Borked mouse controls for the navigator, it seems. --- elm/battlemap/src/Battlemap/Tile.elm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'elm/battlemap/src/Battlemap/Tile.elm') diff --git a/elm/battlemap/src/Battlemap/Tile.elm b/elm/battlemap/src/Battlemap/Tile.elm index 828fb67..255310a 100644 --- a/elm/battlemap/src/Battlemap/Tile.elm +++ b/elm/battlemap/src/Battlemap/Tile.elm @@ -1,7 +1,8 @@ module Battlemap.Tile exposing ( Type, - get_class, + get_location, + get_icon_id, get_cost ) @@ -9,13 +10,16 @@ import Battlemap.Location type alias Type = { - location : Battlemap.Location.Ref, - class : Int, + location : Battlemap.Location.Type, + icon_id : String, crossing_cost : Int } -get_class : Type -> Int -get_class tile = tile.class +get_location : Type -> Battlemap.Location.Type +get_location tile = tile.location + +get_icon_id : Type -> String +get_icon_id tile = tile.icon_id get_cost : Type -> Int get_cost tile = tile.crossing_cost -- cgit v1.2.3-70-g09d2