Interface for all utility based AIs.
More...
|
bool | AddBehaviour (string behaviourId) |
| Adds the behaviour. More...
|
|
bool | RemoveBehaviour (string behaviourId) |
| Removes the behaviour. More...
|
|
IAction | Select (IContext context) |
| Enters a selection process that selects one of the contained behaviours. This in turn selects one option within the selected behaviour and returns the action associated with that option. More...
|
|
T | Clone () |
| Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More...
|
|
Interface for all utility based AIs.
- See also
- T:Crystal.IAiPrototype`1
bool Crystal.IUtilityAi.AddBehaviour |
( |
string |
behaviourId | ) |
|
Adds the behaviour.
- Parameters
-
behaviourId | The behaviour identifier. |
- Returns
- Returns true if the requested behaviour was added to the AI, false otherwise.
Implemented in Crystal.UtilityAi.
bool Crystal.IUtilityAi.RemoveBehaviour |
( |
string |
behaviourId | ) |
|
Removes the behaviour.
- Parameters
-
behaviourId | The behaviour identifier. |
- Returns
- Returns true if the behaviour was removed from the AI, false otherwise.
Implemented in Crystal.UtilityAi.
Enters a selection process that selects one of the contained behaviours. This in turn selects one option within the selected behaviour and returns the action associated with that option.
- Parameters
-
- Returns
- The action associated with the selected option.
Implemented in Crystal.UtilityAi.
string Crystal.IUtilityAi.NameId |
|
get |
A unique name identifier for this AI.
Returns the selector associated with this AI. Also see T:Crystal.ISelector.
The documentation for this interface was generated from the following file:
- Source/Actors/Interfaces/IUtilityAI.cs