summaryrefslogtreecommitdiff
path: root/scripts/actors/actions/DirectionalAction.cs
blob: 077f475482636e211749d0fc7480f3c09e6e2f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using Godot;
using System;

public abstract partial class DirectionalAction : Action
{
	public Vector2I Offset { get; private set; }
	public DirectionalAction(Actor actor, Vector2I offset) : base(actor)
	{
		Offset = offset;
	}

	protected Actor GetBlockingActorAtPosition(Vector2I pos) {
		return Map.GetBlockingActorAtPosition(pos);
	}
}