|
wavelength 1.0.0
|
A test a trigger makes before its actions start. More...
#include <triggercondition.h>

Public Member Functions | |
| virtual | ~TriggerCondition () |
| Release the condition. | |
| virtual bool | Test ()=0 |
| Test the condition. | |
| int | GetNegate () const |
| void | SetNegate (int nNegate) |
| Set whether the trigger needs the condition to be false. | |
Static Public Member Functions | |
| static TriggerCondition * | New (DataArray *pCondition) |
| Build the condition a node describes. | |
A test a trigger makes before its actions start.
The RTTI includes the name. Each kind of condition is a subclass, built by New() from one node of a conditions entry. Most compare a value TheTriggerMgr recorded for the current event.
|
inlinevirtual |
Release the condition.
|
static |
Build the condition a node describes.
Node 0 names the kind, and the nodes after it are its parameters.
| pCondition | The node. |
|
pure virtual |
Test the condition.
Implemented in AnimCondition, BarCondition, ButtonCondition, CapturedCondition, ComponentCondition, DistanceCondition, DyingCondition, GameStateCondition, GemPosCondition, HealthCondition, InstrumentCondition, LeaderCondition, MusicModeCondition, NoteCondition, OldComponentCondition, OldPanelCondition, OldScreenCondition, PanelCondition, PathAlreadyUnlockedCondition, PathExistsCondition, PlayerCondition, PowerupCondition, RandomCondition, RuleSetCondition, ScoreCondition, ScreenCondition, ShowingCondition, StreakCondition, TimeCondition, and TrackCondition.
|
inline |
|
inline |
Set whether the trigger needs the condition to be false.
| nNegate | Non-zero to negate. |