summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2018-07-12 17:10:30 +0200
committernsensfel <SpamShield0@noot-noot.org>2018-07-12 17:10:30 +0200
commit0b2562792eb35c35b573fd9a79d1c73576e0d536 (patch)
tree0a42b767f19e6c1ea76fd9520c886a6716b26966 /src/battle/game-logic/btl_movement.erl
parent73bea4600f5bb3ad748d9bfa65ef6cd14e6bbd55 (diff)
Shared sec. module, some renammings.
Diffstat (limited to 'src/battle/game-logic/btl_movement.erl')
-rw-r--r--src/battle/game-logic/btl_movement.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle/game-logic/btl_movement.erl b/src/battle/game-logic/btl_movement.erl
index 87b1806..f78eca1 100644
--- a/src/battle/game-logic/btl_movement.erl
+++ b/src/battle/game-logic/btl_movement.erl
@@ -19,7 +19,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec cross
(
- btl_battlemap:type(),
+ btl_map:type(),
list(btl_location:type()),
list(btl_direction:enum()),
non_neg_integer(),
@@ -30,7 +30,7 @@ cross (_Battlemap, _ForbiddenLocations, [], Cost, Location) ->
{Location, Cost};
cross (Battlemap, ForbiddenLocations, [Step|NextSteps], Cost, Location) ->
NextLocation = btl_location:apply_direction(Step, Location),
- NextTileClassID = btl_battlemap:get_tile_class_id(NextLocation, Battlemap),
+ NextTileClassID = btl_map:get_tile_class_id(NextLocation, Battlemap),
NextTileID = btl_tile:class_id_to_type_id(NextTileClassID),
NextTile = btl_tile:from_id(NextTileID),
NextCost = (Cost + btl_tile:get_cost(NextTile)),
@@ -50,7 +50,7 @@ cross (Battlemap, ForbiddenLocations, [Step|NextSteps], Cost, Location) ->
-spec cross
(
- btl_battlemap:type(),
+ btl_map:type(),
list(btl_location:type()),
list(btl_direction:enum()),
btl_location:type()