summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-06-13 13:32:43 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-06-13 13:32:43 +0200 |
commit | 499c0981df958643097f96365138df689432e5b4 (patch) | |
tree | 4ad005b50aa261612e6a46f4549c1046134d3644 /src/shared/battle-map/BattleMap/View/Tile.elm | |
parent | 9eaf4c0a006e2a08fdd1e2248978c4ac5cdaef3b (diff) |
Adds AoO pathfinding & temporary representation.
The animation manager does not work correctly though: when a move action
has been interrupted, it will rewind like if there was only the last
movement part, yet play back all parts, landing the character at the
wrong location.
Diffstat (limited to 'src/shared/battle-map/BattleMap/View/Tile.elm')
-rw-r--r-- | src/shared/battle-map/BattleMap/View/Tile.elm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/shared/battle-map/BattleMap/View/Tile.elm b/src/shared/battle-map/BattleMap/View/Tile.elm index d2bf044..1d92493 100644 --- a/src/shared/battle-map/BattleMap/View/Tile.elm +++ b/src/shared/battle-map/BattleMap/View/Tile.elm @@ -10,6 +10,8 @@ import Html import Html.Attributes import Html.Events +import Set + -- Battle Map ------------------------------------------------------------------ import Constants.UI import Constants.IO @@ -58,6 +60,21 @@ get_content_html tile = ( (Html.div [ + (Html.Attributes.class "tile-icon-dg") + ] + ( + case + (Set.size + (BattleMap.Struct.TileInstance.get_triggers tile) + ) + of + 0 -> [] + other -> [(Html.text (String.fromInt other))] + ) + ) + :: + (Html.div + [ (Html.Attributes.class "tile-icon-bg"), (Html.Attributes.style "background-image" |