Crystal AI
1.0.0
|
Interface for AiCollections. AiCollections contain the building blocks for spawning concrete AI instances. An AiCollection also contains all sub-collections used in its composition. More...
Public Member Functions | |
bool | Add (IUtilityAi ai) |
Adds the specified AI. More... | |
bool | Contains (string aiId) |
Determines whether [contains] [the specified name identifier]. More... | |
IUtilityAi | GetAi (string aiId) |
Returns the AI associated with the given identifier, or null if no such AI exists within the collection. More... | |
void | Clear () |
Removes all AIs in this collection. More... | |
void | ClearAll () |
Clears everything, i.e. all actions, considerations, options, behaviours and AIs. More... | |
IUtilityAi | Create (string aiId) |
Creates a new utility AI instance if the requested AI named aiId exists within the AiCollection, otherwise this returns null. More... | |
Properties | |
IBehaviourCollection | Behaviours [get] |
All behaviours available to this AiCollection. More... | |
IOptionCollection | Options [get] |
All options available to this AiCollection. More... | |
IConsiderationCollection | Considerations [get] |
All considerations available to this AiCollection. More... | |
IActionCollection | Actions [get] |
All actions available to this AiCollection. More... | |
Interface for AiCollections. AiCollections contain the building blocks for spawning concrete AI instances. An AiCollection also contains all sub-collections used in its composition.
bool Crystal.IAiCollection.Add | ( | IUtilityAi | ai | ) |
Adds the specified AI.
ai | The ai. |
Implemented in Crystal.AiCollection.
void Crystal.IAiCollection.Clear | ( | ) |
Removes all AIs in this collection.
Implemented in Crystal.AiCollection.
void Crystal.IAiCollection.ClearAll | ( | ) |
Clears everything, i.e. all actions, considerations, options, behaviours and AIs.
Implemented in Crystal.AiCollection.
bool Crystal.IAiCollection.Contains | ( | string | aiId | ) |
Determines whether [contains] [the specified name identifier].
aiId | The name identifier. |
true
if [contains] [the specified name identifier]; otherwise, false
. Implemented in Crystal.AiCollection.
IUtilityAi Crystal.IAiCollection.Create | ( | string | aiId | ) |
Creates a new utility AI instance if the requested AI named aiId exists within the AiCollection, otherwise this returns null.
aiId |
Implemented in Crystal.AiCollection.
IUtilityAi Crystal.IAiCollection.GetAi | ( | string | aiId | ) |
Returns the AI associated with the given identifier, or null
if no such AI exists within the collection.
aiId | The AI identifier. |
Implemented in Crystal.AiCollection.
|
get |
All actions available to this AiCollection.
|
get |
All behaviours available to this AiCollection.
|
get |
All considerations available to this AiCollection.
|
get |
All options available to this AiCollection.