31 #include "common/stack.h" 32 #include "common/str.h" 35 #include "gob/video.h" 36 #include "gob/sound/sounddesc.h" 57 FuncCallType type = kCallSub;
59 int32 callSiteOffset = -1;
61 int32 calleeOffset = -1;
62 bool tailCall =
false;
67 static const uint8 kEnvironmentCount = 20;
73 void get(uint8 env)
const;
77 bool has(
Variables *variables, uint8 startEnv = 0, int16 except = -1)
const;
78 bool has(
Script *script , uint8 startEnv = 0, int16 except = -1)
const;
79 bool has(
Resources *resources, uint8 startEnv = 0, int16 except = -1)
const;
85 bool setMedia(uint8 env);
86 bool getMedia(uint8 env);
87 bool clearMedia(uint8 env);
107 Environment _environments[kEnvironmentCount];
108 Media _media[kEnvironmentCount];
126 static const uint8 kTotCount = 100;
145 Tot _tots[kTotCount];
148 void freeTot(
Tot &tot);
150 bool loadIDE(
Tot &tot);
152 int findFree()
const;
154 bool call(
const Tot &tot, uint16 offset)
const;
167 MouseButtons _mouseButtons;
169 bool _hasForwardedEventsFromVideo;
170 MouseButtons _forwardedMouseButtonsFromVideo;
171 int16 _forwardedKeyFromVideo;
181 char _forceHandleMouse;
188 void playTot(int32
function);
190 void capturePush(int16 left, int16 top, int16 width, int16 height);
191 void capturePop(
char doDraw);
193 void freeSoundSlot(int16 slot);
195 void wantScroll(int16 x, int16 y);
196 void evaluateScroll();
198 int16 checkKeys(int16 *pMousex = 0, int16 *pMouseY = 0,
199 MouseButtons *pButtons = 0,
char handleMouse = 0);
203 void switchTotSub(int16 index, int16
function);
212 void printGobStack();
214 void pushOnGlobalCallStack(FuncCallType type,
217 void popGlobalCallStack();
231 int8 _curEnvironment;
232 int8 _numEnvironments;
237 void clearUnusedEnvironment();
Definition: variables.h:33
In find(In first, In last, const T &v)
Definition: algorithm.h:225
Definition: resources.h:82
Definition: sounddesc.h:43
Definition: hotspots.h:40