BehaviourTransition is an T:Crystal.IAction which when executed triggers the selection of an T:Crystal.IAction using a linked T:Crystal.IBehaviour.
More...
|
class | BehaviourDoesNotExistException |
|
class | BehaviourNullException |
|
|
IAction | Select (IContext context) |
| Triggers the action selection mechanism of the associated T:Crystal.IBehaviour or T:Crystal.IUtilityAi. More...
|
|
override IAction | 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...
|
|
| BehaviourTransition (Behaviour behaviour) |
| Initializes a new instance of the BehaviourTransition class. More...
|
|
| BehaviourTransition (string nameId, string behaviourId, IBehaviourCollection collection) |
| Initializes a new instance of the BehaviourTransition class. More...
|
|
void | Execute (IContext context) |
| Executes the AI Action. 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...
|
|
|
Behaviour | Behaviour [get, set] |
| The T:Crystal.IBehaviour used for T:Crystal.IAction selection when this action is selected. More...
|
|
string | NameId [get] |
| A unique identifier for this action. More...
|
|
float | ElapsedTime [get] |
| The Time that this action has been running for since it has been started in seconds. More...
|
|
float | Cooldown [get, set] |
| The required cool-down time, in seconds, needed before this action executes again. More...
|
|
bool | InCooldown [get] |
| This returns true if the cool-down time for this action has not yet elapsed. More...
|
|
ActionStatus | ActionStatus [get] |
| Gets the action status. More...
|
|
BehaviourTransition is an T:Crystal.IAction which when executed triggers the selection of an T:Crystal.IAction using a linked T:Crystal.IBehaviour.
- See also
- T:Crystal.ActionBase, T:Crystal.ITransition
Crystal.BehaviourTransition.BehaviourTransition |
( |
Behaviour |
behaviour | ) |
|
|
inline |
Initializes a new instance of the BehaviourTransition class.
- Parameters
-
- Exceptions
-
Crystal.BehaviourTransition.BehaviourNullException | |
Crystal.BehaviourTransition.BehaviourTransition |
( |
string |
nameId, |
|
|
string |
behaviourId, |
|
|
IBehaviourCollection |
collection |
|
) |
| |
|
inline |
Initializes a new instance of the BehaviourTransition class.
- Parameters
-
nameId | The name identifier. |
behaviourId | The behaviour identifier. |
collection | The collection. |
- Exceptions
-
Crystal.ActionBase.NameIdEmptyOrNullException | |
override IAction Crystal.BehaviourTransition.Clone |
( |
| ) |
|
|
inline |
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!
- Returns
Triggers the action selection mechanism of the associated T:Crystal.IBehaviour or T:Crystal.IUtilityAi.
- Parameters
-
- Returns
Implements Crystal.ITransition.
Behaviour Crystal.BehaviourTransition.Behaviour |
|
getset |
The T:Crystal.IBehaviour used for T:Crystal.IAction selection when this action is selected.
- Exceptions
-
Crystal.BehaviourTransition.BehaviourDoesNotExistException | |
The documentation for this class was generated from the following file:
- Source/Actions/BehaviourTransition.cs