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 | |
| parent | e8d1d766f0cb1a4823901bdb70d08879eca2e36f (diff) | |
Remoção de prints
| -rw-r--r-- | scripts/Actor.cs | 3 | ||||
| -rw-r--r-- | scripts/Character.cs | 5 | ||||
| -rw-r--r-- | scripts/Enemy.cs | 4 | ||||
| -rw-r--r-- | scripts/TurnManager.cs | 8 |
4 files changed, 4 insertions, 16 deletions
diff --git a/scripts/Actor.cs b/scripts/Actor.cs index b360545..e3c74a4 100644 --- a/scripts/Actor.cs +++ b/scripts/Actor.cs @@ -19,7 +19,6 @@ public abstract partial class Actor : Node2D { TileData tile = Map.GetCellTileData(toMovePos); if (tile.HasCustomData("isWalkable") && (bool) tile.GetCustomData("isWalkable")) { - GD.Print(toMovePos); Position = Map.MapToLocal(toMovePos); } @@ -31,5 +30,5 @@ public abstract partial class Actor : Node2D { EmitSignal(SignalName.actionPerformed); } - public abstract void performAction(); + public abstract void PerformAction(); }
\ No newline at end of file diff --git a/scripts/Character.cs b/scripts/Character.cs index 172ffe4..1db6ee1 100644 --- a/scripts/Character.cs +++ b/scripts/Character.cs @@ -23,7 +23,6 @@ public partial class Character : Actor { Walk(Vector2I.Left); } if (@event.IsActionPressed("walk-right")) { - GD.Print("Hello!"); Walk(Vector2I.Right); } @@ -34,7 +33,6 @@ public partial class Character : Actor { } private void SkipTurn() { - GD.Print("Skipped the turn."); Energy = 0; EndAction(); } @@ -44,8 +42,7 @@ public partial class Character : Actor { base.EndAction(); } - public override void performAction() { - GD.Print("I can act"); + public override void PerformAction() { canAct = true; } } diff --git a/scripts/Enemy.cs b/scripts/Enemy.cs index 52eb27f..473ba0f 100644 --- a/scripts/Enemy.cs +++ b/scripts/Enemy.cs @@ -2,9 +2,7 @@ using Godot; using System; public partial class Enemy : Actor { - public override void performAction() { + public override void PerformAction() { Walk(Vector2I.Right); - - GD.Print("Energy after walking: " + Energy); } } 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); } |
