22 #ifndef STARK_RESOURCES_SCRIPT_H 23 #define STARK_RESOURCES_SCRIPT_H 25 #include "common/str.h" 27 #include "engines/stark/resources/object.h" 47 static const Type::ResourceType TYPE = Type::kScript;
50 kSubTypeGameEvent = 4,
51 kSubTypePlayerAction = 5,
56 kScriptTypeOnGameEvent = 0,
57 kScriptTypePassiveDialog = 1,
58 kScriptTypeOnPlayerAction = 2,
64 kGameEventOnGameLoop = 0,
65 kGameEventOnEnterLocation = 1,
66 kGameEventOnExitLocation = 2
77 kCallModeGameLoop = 1,
78 kCallModeExitLocation = 2,
79 kCallModeEnterLocation = 3,
80 kCallModePlayerAction = 4,
81 kCallModeDialogCreateSelections = 5,
82 kCallModeDialogAnswer = 6
98 void onAllLoaded()
override;
99 void onGameLoop()
override;
108 void enable(
bool value);
123 void execute(uint32 callMode);
126 void pause(int32 msecs);
129 void suspend(
Object *cause);
135 Object *getSuspendingResource()
const;
138 bool shouldExecute(uint32 callMode);
141 void goToNextCommand();
148 void addReturnObject(
Object *
object);
151 void setResumeStatus(ResumeStatus status);
154 void print(uint depth)
override;
155 void printData()
override;
157 void updateSuspended();
159 void resumeCallerExecution(
Object *callerObject);
165 bool _shouldResetGameSpeed;
170 int32 _pauseTimeLeft;
171 Object *_suspendingResource;
172 ResumeStatus _resumeStatus;
180 #endif // STARK_RESOURCES_SCRIPT_H
Definition: stateprovider.h:51
CallMode
Definition: script.h:76