|
wavelength 1.0.0
|
Something a trigger does when its conditions hold. More...
#include <triggeraction.h>

Public Member Functions | |
| virtual | ~TriggerAction () |
| Release the action. | |
| virtual void | Exec ()=0 |
| Run the action. | |
| virtual bool | Poll () |
| Advance an action that TriggerMgr::AddRunning() received. | |
| void | Start () |
| Run the action now, or schedule it when it has a delay. | |
| float | GetDelay () const |
| void | SetDelay (float fDelay) |
| Set the time on the clock of the action before Exec() runs. | |
| int | GetClock () const |
| void | SetClock (int nClock) |
| Set the TriggerMgr::Clock the action runs on. | |
Static Public Member Functions | |
| static TriggerAction * | New (DataArray *pAction) |
| Build the action a node describes. | |
Static Protected Member Functions | |
| template<class T> | |
| static T * | FindObject (DataArray *pAction, const char *pszName) |
| Find a renderer object of a class by name, warning when there is none. | |
Something a trigger does when its conditions hold.
The RTTI includes the name. Each kind of action is a subclass, built by New() from one node of the actions entry of a trigger. An action runs once through Exec() after its delay. An action that takes time hands itself to TriggerMgr::AddRunning(), which polls it each frame until Poll() reports it done.
|
inlinevirtual |
Release the action.
|
static |
Build the action a node describes.
Node 0 names the kind. An unrecognised name becomes a DataFuncAction that runs the node as a script command.
| pAction | The node. |
|
pure virtual |
Run the action.
Implemented in AnimateAction, AnimateToAction, AnimChildAction, AvatarBodyAnimateAction, AvatarGemCatchAction, AvatarInstrumentAction, BackgroundAction, BlurAction, ChangeLyricAction, ChangeScreenAction, DataFuncAction, GenerateAction, SetAnimAction, SetBlurAction, SetCamAction, SetEnvAction, SetGeneratorAction, SetMatAction, SetMeshAction, SetParticlesAction, and ShowAction.
|
inlinevirtual |
Advance an action that TriggerMgr::AddRunning() received.
The base action finishes at once.
Reimplemented in AnimateAction, AnimateToAction, BackgroundAction, BlurAction, and SetParticlesAction.
| void TriggerAction::Start | ( | ) |
Run the action now, or schedule it when it has a delay.
The clock of the action becomes the current clock of TheTriggerMgr first.
|
inline |
|
inline |
Set the time on the clock of the action before Exec() runs.
| fDelay | The time. |
|
inline |
|
inline |
Set the TriggerMgr::Clock the action runs on.
| nClock | The clock. |
|
inlinestaticprotected |
Find a renderer object of a class by name, warning when there is none.
Every constructor that resolves an object expands it.
| pAction | The node of the action, which identifies it in the warning. |
| pszName | The name of the object. |