mirror of
https://github.com/lscharen/iigs-sprite-compiler.git
synced 2025-01-02 14:32:23 +00:00
27 lines
669 B
C#
27 lines
669 B
C#
namespace SpriteCompiler.AI
|
|
{
|
|
using System;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <typeparam name="A">Action on a node</typeparam>
|
|
/// <typeparam name="S">State of the search</typeparam>
|
|
/// <typeparam name="T">Type of the parent</typeparam>
|
|
/// <typeparam name="C">Cost type</typeparam>
|
|
public interface ISearchNode<A, S, T, C> : ISearchNode<C> where C : IPathCost<C>
|
|
{
|
|
A Action { get; set; }
|
|
S State { get; }
|
|
T Parent { get; }
|
|
}
|
|
|
|
public interface ISearchNode<C>
|
|
{
|
|
C PathCost { get; }
|
|
C StepCost { get; set; }
|
|
int Depth { get; }
|
|
C EstCost { get; }
|
|
}
|
|
}
|