Crystal AI  1.0.0
Crystal.ITransition Interface Reference

Interface to Transitions. A transition is an T:Crystal.IAction that transfers control to a behaviour or another AI. More...

Inheritance diagram for Crystal.ITransition:
Crystal.IAction Crystal.IAiPrototype< IAction > Crystal.AiTransition Crystal.BehaviourTransition

Public Member Functions

IAction Select (IContext context)
 Triggers the action selection mechanism of the associated T:Crystal.IBehaviour or T:Crystal.IUtilityAi. More...
 
- Public Member Functions inherited from Crystal.IAction
void Execute (IContext context)
 Executes the AI Action. More...
 
- Public Member Functions inherited from Crystal.IAiPrototype< 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...
 

Additional Inherited Members

- Properties inherited from Crystal.IAction
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...
 

Detailed Description

Interface to Transitions. A transition is an T:Crystal.IAction that transfers control to a behaviour or another AI.

See also
T:Crystal.IAction

Member Function Documentation

IAction Crystal.ITransition.Select ( IContext  context)

Triggers the action selection mechanism of the associated T:Crystal.IBehaviour or T:Crystal.IUtilityAi.

Parameters
contextThe context.

Implemented in Crystal.BehaviourTransition, and Crystal.AiTransition.


The documentation for this interface was generated from the following file: