wavelength 1.0.0
Loading...
Searching...
No Matches
screencondition.h
Go to the documentation of this file.
1#pragma once
2
4#include "game/triggermgr.h"
5#include "os/string.h"
6#include "script/dataarray.h"
7
15public:
22 ~ScreenCondition() override = default;
23
24 explicit ScreenCondition(DataArray *pCondition) : mName(pCondition->Sym(1)) {
25 }
26
34 bool Test() override {
35 return TheTriggerMgr.GetScreen() == mName;
36 }
37
38private:
39 String mName;
40};
Reference-counted array of script data nodes.
Definition dataarray.h:20
~ScreenCondition() override=default
Destroy the object.
ScreenCondition(DataArray *pCondition)
Definition screencondition.h:24
bool Test() override
Test the condition.
Definition screencondition.h:34
Growable text buffer that is also a PrnStream.
Definition string.h:19
A test a trigger makes before its actions start.
Definition triggercondition.h:11
TriggerMgr TheTriggerMgr
The trigger registry.