summaryrefslogtreecommitdiff
path: root/scripts/entities/actors/actions/DirectionalAction.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-09-04 17:04:52 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-09-04 17:04:52 -0300
commit396c0788cea3bc68022c4bc5a96c82e058bc9b93 (patch)
tree0eeecb67a14f61c4f42f363a94685539d09b2201 /scripts/entities/actors/actions/DirectionalAction.cs
parent6f2c2edd52171a4df7f35de695c9b2e7801d3e5f (diff)
Move move
Diffstat (limited to 'scripts/entities/actors/actions/DirectionalAction.cs')
-rw-r--r--scripts/entities/actors/actions/DirectionalAction.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/entities/actors/actions/DirectionalAction.cs b/scripts/entities/actors/actions/DirectionalAction.cs
deleted file mode 100644
index 9c7a915..0000000
--- a/scripts/entities/actors/actions/DirectionalAction.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using Godot;
-
-/// <summary>
-/// Ação direcionada. Esta ação é acompanhada com um vetor que representa uma
-/// distância tendo como ponto de partida o ator.
-/// </summary>
-public abstract partial class DirectionalAction : Action
-{
- /// <summary>
- /// Direção/distância do ator da ação.
- /// Seu significado depende da ação que implementará esta classe.
- /// </summary>
- public Vector2I Offset { get; private set; }
- /// <summary>
- /// Coordenada do alvo da ação.
- /// </summary>
- public Vector2I Destination { get => actor.GridPosition + Offset; }
- public DirectionalAction(Actor actor, Vector2I offset) : base(actor)
- {
- Offset = offset;
- }
-
- /// <summary>
- /// Função que obtém o alvo da ação, se houver.
- /// </summary>
- /// <returns>O ator alvo da ação, nulo se não houver.</returns>
- protected Entity GetTarget() {
- return Map_Data.GetBlockingEntityAtPosition(Destination);
- }
-}