wavelength 1.0.0
Loading...
Searching...
No Matches
TriggerCondition Class Referenceabstract

A test a trigger makes before its actions start. More...

#include <triggercondition.h>

Inheritance diagram for TriggerCondition:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~TriggerCondition()

virtual TriggerCondition::~TriggerCondition ( )
inlinevirtual

Release the condition.

Ghidra address:
NTSC-U/C: 0x00376970
Ghidra address:
PAL: 0x003e50a0

Member Function Documentation

◆ New()

TriggerCondition * TriggerCondition::New ( DataArray * pCondition)
static

Build the condition a node describes.

Node 0 names the kind, and the nodes after it are its parameters.

Parameters
pConditionThe node.
Returns
The condition, or null for an unrecognised name.
Ghidra address:
NTSC-U/C: 0x00203428
Ghidra address:
PAL: 0x0020c1e0

◆ Test()

◆ GetNegate()

int TriggerCondition::GetNegate ( ) const
inline
Returns
Non-zero when the trigger needs the condition to be false.

◆ SetNegate()

void TriggerCondition::SetNegate ( int nNegate)
inline

Set whether the trigger needs the condition to be false.

Parameters
nNegateNon-zero to negate.

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