![]() |
VR-Forces 4.0.4 Class Documentation
|
Trigger (DtSimTrigger, in simTrigger.h) objects are created by When statements (DtWhenStmt) when they are executed.
Triggers register with a DtPlan object so that they can get ticked. They keep a pointer to the plan so that they can unregister when they fire and are deleted.
When a DtSimTrigger is created, it saves a pointer to the When statement that created it. When DtSimTrigger::tick() is called, the trigger uses the DtWhenStmt statement pointer to get the conditional expression so that it can test it. When the trigger condition becomes true, the following occurs:
If the trigger is a "Retask" trigger (the only kind in the VR-Forces front-end), the trigger tells the DtPlan to pushExecutionStack().
[<< Conditional Expressions] [Home] [Top of Page]