using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
namespace CalamityMod.Pathfinding.Movements
{
///
/// Defines an interface for different types of movement in the context of pathfinding.
///
public interface IMovement
{
///
/// The internal name given to this movement.
/// Needed to differentiate between movements.
///
string RegistrationName { get; }
///
/// The cost of enacting this movement.
/// Takes in two positions and returns the cost of the movement.
/// Cost can be negative if you want to reward that type of movement, but can lead to unintended behavior.
///
Func Cost { get; }
///
/// Defines a method that is run whenever this movement starts execution.
/// Useful to get any variables set up for this movement's action.
///
void Start();
///
/// A method that defines the way to follow from one position to another.
///
/// The destination of this movement.
/// if this movement has finished; otherwise .
bool FollowPath(Vector2 nextPoint);
///
/// A method to retrieve the possible destinations that this movement can achieve.
///
/// The starting position where this movement takes place.
/// An enumerable collection of s with all the possible destinations.
IEnumerable GetDestinations(Point current);
}
}