Crystal AI
1.0.0
|
A collection of T:Crystal.IBehaviours. More...
Classes | |
class | OptionCollectionNullException |
Public Member Functions | |
bool | Add (IBehaviour behaviour) |
Adds the given behaviour to this collection. More... | |
bool | Contains (string behaviourId) |
Determines whether a behaviour with the specified name identifier exists within this collection. More... | |
void | Clear () |
Removes all behaviours from this collection. More... | |
void | ClearAll () |
Removes all behaviours from this collection. Additionally all options are removed from the T:Crystal.IOptionCollection used in constructing this collection as well as all considerations and actions are removed from their respective collections. More... | |
IBehaviour | Create (string behaviourId) |
Creates a behaviour with the specified identifier if such a behaviour exists; otherwise returns null . More... | |
BehaviourCollection (IOptionCollection optionCollection) | |
Initializes a new instance of the BehaviourCollection class. More... | |
Properties | |
IOptionCollection | Options [get] |
The T:Crystal.IOptionCollection used to construct this collection. More... | |
Properties inherited from Crystal.IBehaviourCollection | |
IOptionCollection | Options [get] |
The T:Crystal.IOptionCollection used to construct this collection. More... | |
A collection of T:Crystal.IBehaviours.
|
inline |
Initializes a new instance of the BehaviourCollection class.
optionCollection | The option collection. |
Crystal.BehaviourCollection.OptionCollectionNullException |
|
inline |
Adds the given behaviour to this collection.
behaviour | The behaviour. |
true
if the behaviour was added to the collection; otherwise, false
. Implements Crystal.IBehaviourCollection.
|
inline |
Removes all behaviours from this collection.
Implements Crystal.IBehaviourCollection.
|
inline |
Removes all behaviours from this collection. Additionally all options are removed from the T:Crystal.IOptionCollection used in constructing this collection as well as all considerations and actions are removed from their respective collections.
Implements Crystal.IBehaviourCollection.
|
inline |
Determines whether a behaviour with the specified name identifier exists within this collection.
behaviourId | The name identifier. |
true
if a behaviour with the specified identifier exists within the collection; otherwise, false
. Implements Crystal.IBehaviourCollection.
|
inline |
Creates a behaviour with the specified identifier if such a behaviour exists; otherwise returns null
.
behaviourId | The behaviour identifier. |
Implements Crystal.IBehaviourCollection.
|
get |
The T:Crystal.IOptionCollection used to construct this collection.