diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-16 17:49:02 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-16 17:49:02 -0300 |
| commit | 5c265ada0d1ec531fa97ad132b87c99cb9e81b1a (patch) | |
| tree | a34767dda4887c184492aba0fba2cc3fc0efb211 /scripts/TurnManager.cs | |
| parent | e8d1d766f0cb1a4823901bdb70d08879eca2e36f (diff) | |
Remoção de prints
Diffstat (limited to 'scripts/TurnManager.cs')
| -rw-r--r-- | scripts/TurnManager.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/scripts/TurnManager.cs b/scripts/TurnManager.cs index ffb2659..ea9050e 100644 --- a/scripts/TurnManager.cs +++ b/scripts/TurnManager.cs @@ -17,20 +17,15 @@ public partial class TurnManager : Node { public void Tick() { EmitSignal(SignalName.turnBegin); - GD.Print("Turn: " + TurnCount); - actors.Clear(); actors = GetTree().GetNodesInGroup("TimeSlave"); - GD.Print("Actor count: " + actors.Count); - index = -1; NextActor(); } private void NextActor() { index++; - GD.Print("Index: " + index); if (index >= actors.Count) { EndTurn(); return; @@ -43,7 +38,7 @@ public partial class TurnManager : Node { private void ActorPerformAction() { Actor currentActor = (Actor) actors[index]; if (currentActor.Energy > 0) { - currentActor.performAction(); + currentActor.PerformAction(); } else { NextActor(); } @@ -54,7 +49,6 @@ public partial class TurnManager : Node { } private void EndTurn() { - GD.Print("Turn End"); TurnCount++; EmitSignal(SignalName.turnEnd); } |
