From e9701f8ca459fa0015d78cacdc61aee904675598 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 17 Aug 2025 21:10:30 -0300 Subject: Sistema de turnos rudimentar --- scripts/Game.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'scripts/Game.cs') diff --git a/scripts/Game.cs b/scripts/Game.cs index ddea395..21531fc 100644 --- a/scripts/Game.cs +++ b/scripts/Game.cs @@ -21,6 +21,17 @@ public partial class Game : Node { Action action = inputHandler.GetAction(); - action?.Perform(this, player); + if (action != null) { + action.Perform(this, player); + HandleEnemyTurns(); + } + } + + private void HandleEnemyTurns() { + foreach (Actor actor in Map.Actors) { + if (actor is Player) continue; + + GD.Print($"O {actor.ActorName} foi cuckado e não tem como agir."); + } } } -- cgit v1.2.3