OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
codemaster.h
Go to the documentation of this file.
1#pragma once
2
3#include "abstracttrigger.h"
4
5class World;
6
7class CodeMaster : public AbstractTrigger {
8 public:
9 CodeMaster(Vob* parent, World &world, const zenkit::VCodeMaster& data, Flags flags);
10
11 void onTrigger(const TriggerEvent& evt) override;
12
13 private:
14 void save(Serialize& fout) const override;
15 void load(Serialize &fin) override;
16
17 void onFailure();
18 void onSuccess();
19 void zeroState();
20
21 std::vector<bool> keys;
22 std::vector<std::string> slaves;
23 uint32_t count = 0;
24 bool ordered = false;
25 bool firstFalseIsFailure = false;
26 std::string failureTarget;
27 bool untriggeredCancels = false;
28 };
29
void onTrigger(const TriggerEvent &evt) override
Definition vob.h:11
Flags
Definition vob.h:13
World & world
Definition vob.h:45
Definition world.h:31