wavelength 1.0.0
Loading...
Searching...
No Matches
triggercondition.h
Go to the documentation of this file.
1#pragma once
2
3#include "script/dataarray.h"
4
12public:
23 static TriggerCondition *New(DataArray *pCondition);
24
32 }
33
39 virtual bool Test() = 0;
40
42 int GetNegate() const {
43 return mNegate;
44 }
45
51 void SetNegate(int nNegate) {
52 mNegate = nNegate;
53 }
54
55private:
56 int mNegate;
57};
Reference-counted array of script data nodes.
Definition dataarray.h:20
A test a trigger makes before its actions start.
Definition triggercondition.h:11
virtual bool Test()=0
Test the condition.
static TriggerCondition * New(DataArray *pCondition)
Build the condition a node describes.
int GetNegate() const
Definition triggercondition.h:42
virtual ~TriggerCondition()
Release the condition.
Definition triggercondition.h:31
void SetNegate(int nNegate)
Set whether the trigger needs the condition to be false.
Definition triggercondition.h:51