diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-19 18:17:36 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-19 18:17:36 +0200 |
commit | 2320bc526783ac3fb86e52dde07e8bb736a76286 (patch) | |
tree | 8080437f639775e67b3c113153a8972c534cbf72 /Unit.gd | |
parent | fa92fda3e7ea53d479402dcdbd153177ef030c21 (diff) | |
download | godot-hexgrid-2320bc526783ac3fb86e52dde07e8bb736a76286.zip godot-hexgrid-2320bc526783ac3fb86e52dde07e8bb736a76286.tar.gz |
document public API
Diffstat (limited to 'Unit.gd')
-rw-r--r-- | Unit.gd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()) |