An AI behaviour is a set of T:Crystal.IOptions. The behaviour itself is a composite consideration and therefore, unless this is the only behaviour in a T:Crystal.IUtilityAi, it will be selected only if its considerations "win" against competing behaviours in the AI.
More...
|
bool | AddOption (IOption option) |
| Adds the option. More...
|
|
bool | AddOption (string optionId) |
| Adds the option associated with optionId, if one exists. More...
|
|
IAction | Select (IContext context) |
| Selects the action for execution, given the specified context. More...
|
|
override IConsideration | 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...
|
|
| Behaviour () |
| Initializes a new instance of the Behaviour class. More...
|
|
| Behaviour (string nameId, IBehaviourCollection collection) |
| Initializes a new instance of the Behaviour class. More...
|
|
bool | AddConsideration (IConsideration consideration) |
| Add the specified consideration. More...
|
|
bool | AddConsideration (string considerationId) |
| Add the consideration associated with the given Id. More...
|
|
virtual void | Consider (IContext context) |
| Calculates the utility for this option given the provided context. More...
|
|
| CompositeConsideration () |
| Initializes a new instance of the T:Crystal.CompositeConsideration class. More...
|
|
| CompositeConsideration (string nameId, IConsiderationCollection collection) |
| Initializes a new instance of the CompositeConsideration 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...
|
|
|
ISelector | Selector [get, set] |
| T:Crystal.ISelector More...
|
|
string | NameId [get, set] |
| An identifier for this consideration. More...
|
|
IMeasure | Measure [get, set] |
| The measure to be used to evaluate the utility of this consideration. More...
|
|
Utility | DefaultUtility [get, set] |
| Gets or sets the default utility. More...
|
|
Utility | Utility [get, protected set] |
| Returns the combined utility for this consideration. More...
|
|
float | Weight [get, set] |
| Gets the weight of this consideration. More...
|
|
bool | IsInverted [get, set] |
| If true, then the output of the associated evaluator is inverted, in effect, inverting the consideration. More...
|
|
IMeasure | Measure [get, set] |
| The measure to be used to evaluate the utility of this consideration. More...
|
|
string | NameId [get] |
| A unique named identifier for this consideration. More...
|
|
Utility | DefaultUtility [get, set] |
| Gets or sets the default utility. More...
|
|
Utility | Utility [get] |
| Returns the utility for this consideration. More...
|
|
float | Weight [get, set] |
| The weight of this consideration. More...
|
|
bool | IsInverted [get, set] |
| If true, then the output of the associated evaluator is inverted, in effect, inverting the consideration. More...
|
|
ISelector | Selector [get, set] |
| T:Crystal.ISelector More...
|
|
An AI behaviour is a set of T:Crystal.IOptions. The behaviour itself is a composite consideration and therefore, unless this is the only behaviour in a T:Crystal.IUtilityAi, it will be selected only if its considerations "win" against competing behaviours in the AI.
- See also
- T:Crystal.CompositeConsideration, T:Crystal.IBehaviour