wavelength 1.0.0
Loading...
Searching...
No Matches
gemposcondition.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/triggermgr.h"
5#include "script/dataarray.h"
6
14public:
21 ~GemPosCondition() override = default;
22
23 explicit GemPosCondition(DataArray *pCondition) : mGemPos(pCondition->Int(1)) {
24 }
25
33 bool Test() override {
34 return TheTriggerMgr.GetGemPos() == mGemPos;
35 }
36
37private:
38 int mGemPos;
39};
Reference-counted array of script data nodes.
Definition dataarray.h:20
bool Test() override
Test the condition.
Definition gemposcondition.h:33
GemPosCondition(DataArray *pCondition)
Definition gemposcondition.h:23
~GemPosCondition() override=default
Destroy the object.
A test a trigger makes before its actions start.
Definition triggercondition.h:11
TriggerMgr TheTriggerMgr
The trigger registry.