feat: Introduce player input and movement managers to handle continuous, turn-based, and targeted grid interactions.

This commit is contained in:
Yogi Wiguna
2026-02-23 17:09:33 +08:00
parent 3a5e6ad703
commit 19fdb12c31
4 changed files with 77 additions and 35 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ func simple_move_to(grid_position: Vector2i) -> bool:
# print("[Move] Failed: Not authority for ", player.name)
return false
if player.get("is_frozen"):
if player.get("is_frozen") or player.get("is_stop_frozen"):
print("[Move] Failed: Player is frozen")
return false
@@ -242,7 +242,7 @@ func move_to_clicked_position(grid_position: Vector2i) -> bool:
return false
# Check if player is frozen
if player.get("is_frozen"):
if player.get("is_frozen") or player.get("is_stop_frozen"):
return false
# Validate grid position is within bounds