The Utility AI.
More...
|
class | AiAlreadyExistsInCollectionException |
|
class | AiCollectionNullException |
|
class | NameIdIsNullOrEmptyException |
|
|
bool | AddBehaviour (string behaviourId) |
| Adds the behaviour associated with behaviourId to the AI. More...
|
|
bool | RemoveBehaviour (string behaviourId) |
| Removes the behaviour associated with behaviourId from the AI. 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...
|
|
IUtilityAi | Clone () |
| Clones this instance. More...
|
|
| UtilityAi () |
| Initializes a new instance of the UtilityAi class. More...
|
|
| UtilityAi (string nameId, IAiCollection collection) |
| Initializes a new instance of the UtilityAi class. 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...
|
|
The Utility AI.
- See also
- T:Crystal.IUtilityAi
Crystal.UtilityAi.UtilityAi |
( |
| ) |
|
|
inline |
Initializes a new instance of the UtilityAi class.
Crystal.UtilityAi.UtilityAi |
( |
string |
nameId, |
|
|
IAiCollection |
collection |
|
) |
| |
|
inline |
Initializes a new instance of the UtilityAi class.
- Parameters
-
nameId | The name identifier. |
collection | The collection. |
- Exceptions
-
Crystal.UtilityAi.NameIdIsNullOrEmptyException | |
Crystal.UtilityAi.AiCollectionNullException | |
Crystal.UtilityAi.AiAlreadyExistsInCollectionException | |
bool Crystal.UtilityAi.AddBehaviour |
( |
string |
behaviourId | ) |
|
|
inline |
Adds the behaviour associated with behaviourId to the AI.
- Parameters
-
behaviourId | The behaviour identifier. |
- Returns
- Returns true if the requested behaviour was added to the AI, false otherwise.
Implements Crystal.IUtilityAi.
Clones this instance.
- Returns
bool Crystal.UtilityAi.RemoveBehaviour |
( |
string |
behaviourId | ) |
|
|
inline |
Removes the behaviour associated with behaviourId from the AI.
- Parameters
-
behaviourId | The behaviour identifier. |
- Returns
- Returns true if the behaviour was removed from the AI, false otherwise.
Implements Crystal.IUtilityAi.
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.
Implements Crystal.IUtilityAi.
string Crystal.UtilityAi.NameId |
|
getset |
A unique name identifier for this AI.
Gets or sets the selector.
The selector.
The documentation for this class was generated from the following file:
- Source/Actors/UtilityAI.cs