aboutsummaryrefslogtreecommitdiff
path: root/V3/AI/IAction.cs
blob: b68355f990a0abc14db1b781f9d37001dbcc4591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace V3.AI
{
    /// <summary>
    /// An action that can be taken by the computer player.
    /// </summary>
    public interface IAction
    {
        /// <summary>
        /// The current state of the action.
        /// </summary>
        ActionState State { get; }

        /// <summary>
        /// Start the execution of the action.
        /// </summary>
        void Start();

        /// <summary>
        /// Update the execution state.  This method should be repateatingly
        /// called as long as State is Executing.
        /// </summary>
        void Update();
    }
}