summaryrefslogtreecommitdiff
path: root/scripts/actors/actions/DirectionalAction.cs
diff options
context:
space:
mode:
authorMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:45:07 -0300
committerMatheus <matheus.guedes.mg.m@gmail.com>2025-08-17 21:45:07 -0300
commit240156765d88db25dd092fc320005cdb5f28d7a7 (patch)
tree2fadb2e7ef9409744f1d086f8f81771a46de2957 /scripts/actors/actions/DirectionalAction.cs
parente9701f8ca459fa0015d78cacdc61aee904675598 (diff)
Refactor no sistema de ações
Diffstat (limited to 'scripts/actors/actions/DirectionalAction.cs')
-rw-r--r--scripts/actors/actions/DirectionalAction.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/actors/actions/DirectionalAction.cs b/scripts/actors/actions/DirectionalAction.cs
index 7512141..077f475 100644
--- a/scripts/actors/actions/DirectionalAction.cs
+++ b/scripts/actors/actions/DirectionalAction.cs
@@ -4,8 +4,12 @@ using System;
public abstract partial class DirectionalAction : Action
{
public Vector2I Offset { get; private set; }
- public DirectionalAction(Vector2I offset)
+ public DirectionalAction(Actor actor, Vector2I offset) : base(actor)
{
Offset = offset;
}
+
+ protected Actor GetBlockingActorAtPosition(Vector2I pos) {
+ return Map.GetBlockingActorAtPosition(pos);
+ }
}