diff options
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); } |
