summaryrefslogtreecommitdiffstats
path: root/Hex.gd
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-11 00:08:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-11 00:08:17 +0200
commitd52b450b2dcfaa8bc1c78da328e568dcd5fc33a6 (patch)
tree548d95c837e7c48fa79a0980d933e9788f55159b /Hex.gd
parent7fca7e65985deb24d51041d30fb8ea6ed2bd8571 (diff)
downloadgodot-hexgrid-d52b450b2dcfaa8bc1c78da328e568dcd5fc33a6.zip
godot-hexgrid-d52b450b2dcfaa8bc1c78da328e568dcd5fc33a6.tar.gz
implement shortest path
Diffstat (limited to 'Hex.gd')
-rw-r--r--Hex.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/Hex.gd b/Hex.gd
index 57a1a19..32e4083 100644
--- a/Hex.gd
+++ b/Hex.gd
@@ -59,3 +59,7 @@ func show_los(b) -> void:
func show_move(b) -> void:
if 6 < get_child_count():
enable_overlay(6, b)
+
+func show_short(b) -> void:
+ if 7 < get_child_count():
+ enable_overlay(7, b)