Crystal AI  1.0.0
Crystal.ActionSequence Class Reference

An AI action that is comprised of one or more other actions, which are executed in order. More...

Inheritance diagram for Crystal.ActionSequence:
Crystal.ActionBase

Public Member Functions

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...
 
 ActionSequence ()
 Initializes a new instance of the ActionSequence class. More...
 
 ActionSequence (string nameId, IActionCollection collection)
 Initializes a new instance of the ActionSequence class. More...
 

Protected Member Functions

override void OnExecute (IContext context)
 Executes each child action in sequence. More...
 
override void OnUpdate (IContext context)
 Updates each action in sequence until no action is running. More...
 

Properties

IList< IActionActions [get]
 Returns the sequence of actions executed when this sequence is selected. More...
 

Detailed Description

An AI action that is comprised of one or more other actions, which are executed in order.

See also
T:Crystal.ITransition

Constructor & Destructor Documentation

Crystal.ActionSequence.ActionSequence ( )
inline

Initializes a new instance of the ActionSequence class.

Crystal.ActionSequence.ActionSequence ( string  nameId,
IActionCollection  collection 
)
inline

Initializes a new instance of the ActionSequence class.

Parameters
nameIdThe name identifier.
collectionThe collection.

Member Function Documentation

override IAction Crystal.ActionSequence.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
override void Crystal.ActionSequence.OnExecute ( IContext  context)
inlineprotected

Executes each child action in sequence.

Parameters
contextContext.
override void Crystal.ActionSequence.OnUpdate ( IContext  context)
inlineprotected

Updates each action in sequence until no action is running.

Parameters
contextContext.

Property Documentation

IList<IAction> Crystal.ActionSequence.Actions
get

Returns the sequence of actions executed when this sequence is selected.


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