summaryrefslogtreecommitdiff
path: root/scripts/Game.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:10:30 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:10:30 -0300
commite9701f8ca459fa0015d78cacdc61aee904675598 (patch)
tree5cf900312952cf0e6fe9db96a1e44b1fec43d54e /scripts/Game.cs
parentbd8a14e5d22ee7e4e53a1b3c8bfe2b35328632e5 (diff)
Sistema de turnos rudimentar
Diffstat (limited to 'scripts/Game.cs')
-rw-r--r--scripts/Game.cs13
1 files changed, 12 insertions, 1 deletions
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.");
+ }
}
}