diff options
Diffstat (limited to 'scripts/actors/actions/DirectionalAction.cs')
| -rw-r--r-- | scripts/actors/actions/DirectionalAction.cs | 6 |
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); + } } |
