25 #include "common/array.h" 26 #include "common/str.h" 27 #include "twp/squirrel/squirrel.h" 50 int getId()
const {
return _id; }
53 virtual bool isGlobal() = 0;
60 virtual bool update(
float elapsed) = 0;
61 virtual void stop() = 0;
65 float _waitTime = 0.f;
68 bool _pauseable =
false;
69 uint32 _lastUpdateTime = 0;
74 bool _stopRequest =
false;
75 bool _stopped =
false;
81 virtual ~
Thread()
override final;
83 virtual bool isGlobal()
override final {
return _global; }
84 virtual HSQUIRRELVM getThread()
override final {
return _threadObj._unVal.pThread; }
87 virtual bool update(
float elapsed)
override final;
88 virtual void stop()
override final;
92 HSQOBJECT _threadObj, _envObj, _closureObj;
112 bool isGlobal()
override final {
return false; }
114 bool update(
float elapsed)
override final;
115 void stop()
override final;
117 bool hasOverride()
const;
118 void cutsceneOverride();
121 void setInputState(InputStateFlag state) { _inputState = state; }
122 void setShowCursor(
bool state) { _showCursor = state; }
125 void checkEndCutscene();
126 void checkEndCutsceneOverride();
127 void doCutsceneOverride();
130 int _parentThreadId = 0;
131 HSQOBJECT _threadObj, _closure, _closureOverride, _envObj;
132 CutsceneState _state;
133 bool _showCursor =
false;
134 InputStateFlag _inputState = (InputStateFlag)0;
Definition: squirrel.h:153
Definition: achievements_tables.h:27