2018-11-20 20:10:49 +01:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2018-11-21 21:16:20 +01:00
|
|
|
namespace Fie.AI {
|
|
|
|
/// <summary>
|
|
|
|
/// An AI task that a character can perform. Called to handle movement/targetting/etc.
|
|
|
|
/// </summary>
|
|
|
|
public interface FieAITaskInterface {
|
|
|
|
/// <summary>
|
|
|
|
/// Runs this task.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="manager">The manager responsible for calling this task</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
bool TaskExec(FieAITaskController manager);
|
2018-11-20 20:10:49 +01:00
|
|
|
|
2018-11-21 21:16:20 +01:00
|
|
|
bool Task(FieAITaskController manager);
|
2018-11-20 20:10:49 +01:00
|
|
|
|
2018-11-21 21:16:20 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Gets a relative importance mapping for this task given different targets and contexts.
|
|
|
|
/// </summary>
|
|
|
|
Dictionary<Type, int> GetWeight();
|
|
|
|
}
|
2018-11-20 20:10:49 +01:00
|
|
|
}
|