summaryrefslogtreecommitdiffstats
path: root/Unit.gd
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-19 18:17:36 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-19 18:17:36 +0200
commit2320bc526783ac3fb86e52dde07e8bb736a76286 (patch)
tree8080437f639775e67b3c113153a8972c534cbf72 /Unit.gd
parentfa92fda3e7ea53d479402dcdbd153177ef030c21 (diff)
downloadgodot-hexgrid-2320bc526783ac3fb86e52dde07e8bb736a76286.zip
godot-hexgrid-2320bc526783ac3fb86e52dde07e8bb736a76286.tar.gz
document public API
Diffstat (limited to 'Unit.gd')
-rw-r--r--Unit.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Unit.gd b/Unit.gd
index cda26c8..e699f61 100644
--- a/Unit.gd
+++ b/Unit.gd
@@ -9,5 +9,5 @@ func get_mp() -> int:
func road_march_bonus() -> int:
return 2
-func move_cost(src : Tile, dst : Tile, o : int) -> int:
- return (1 if (src.has_road(o) and dst.type != 3) else dst.cost())
+func move_cost(src : Tile, dst : Tile, orientation : int) -> int:
+ return (1 if (src.has_road(orientation) and dst.type != 3) else dst.cost())