22 #ifndef NANCY_SCRIPT_SCENECONTEXT_H 23 #define NANCY_SCRIPT_SCENECONTEXT_H 25 #include "common/array.h" 26 #include "common/hash-str.h" 27 #include "common/keyboard.h" 28 #include "common/str.h" 30 #include "engines/nancy/script/types.h" 62 void run(
double elapsedTime);
73 bool isEnding()
const {
return _isEnding; }
82 bool receiveMessage(
const Message &message,
bool &wasTaken);
89 void addRecord(
Record *record) { _newRecords.push_back(record); }
90 bool hasRecords()
const {
return !_records.empty() || !_newRecords.empty(); }
96 const Common::String &getStreamName()
const {
return _streamName; }
98 uint getFrame()
const {
return _frame; }
99 void setFrame(uint frame) { _frame = frame; }
100 int32 getZOffset()
const {
return _zOffset; }
103 double getTime()
const {
return _time; }
104 double getElapsedTime()
const {
return _elapsedTime; }
110 bool isSkipping()
const {
return _isSkipping; }
114 void setConvo(
ConvoRecord *convo) { _convo = convo; }
117 void addConvoResponse(
ConvoResponse *response) { _convoResponses.push_back(response); }
120 void setMakesUI() { _makesUI =
true; }
130 void setSceneFunction(
const char *name);
136 bool callSceneFunction(
const char *name,
int numArgs);
137 void pushMessage(
const Message &message);
138 void runFrame(
double elapsedTime);
139 void deleteDroppedRecords();
140 void renderAttachment();
141 bool hasSkippableRecord()
const;
142 void pushSceneFunctions();
143 void sendMouseEvent(
int event,
const ScriptPoint &point,
bool inViewport);
144 void sendKeyEvent(
int event, Common::KeyCode key);
148 bool _isEnding =
false;
162 double _elapsedTime = 0.0;
163 bool _hasRunOnce =
false;
164 bool _makesUI =
false;
165 bool _isSkipping =
false;
166 bool _hasChangedScene =
false;
169 uint16 _heldMoveKeys = 0;
176 #endif // NANCY_SCRIPT_SCENECONTEXT_H
Definition: scenecontext.h:52
Definition: luastate.h:38
Definition: actionmanager.h:32