22 #ifndef SCUMM_SCRIPT_V6_H 23 #define SCUMM_SCRIPT_V6_H 25 #include "scumm/scumm.h" 54 SO_WALK_ANIMATION = 79,
55 SO_TALK_ANIMATION = 80,
56 SO_STAND_ANIMATION = 81,
60 SO_ANIMATION_DEFAULT = 85,
64 SO_INIT_ANIMATION = 89,
72 SO_ANIMATION_SPEED = 97,
78 SO_LOAD_COSTUME = 102,
82 SO_NUKE_COSTUME = 106,
86 SO_LOCK_COSTUME = 110,
88 SO_UNLOCK_SCRIPT = 112,
89 SO_UNLOCK_SOUND = 113,
90 SO_UNLOCK_COSTUME = 114,
93 SO_LOAD_CHARSET = 117,
94 SO_NUKE_CHARSET = 118,
100 SO_VERB_HICOLOR = 127,
104 SO_VERB_DELETE = 131,
106 SO_VERB_DIMCOLOR = 133,
109 SO_VERB_CENTER = 136,
110 SO_VERB_NAME_STR = 137,
112 SO_VERB_IMAGE_IN_ROOM = 139,
113 SO_VERB_BAKCOLOR = 140,
115 SO_RESTORE_VERBS = 142,
116 SO_DELETE_VERBS = 143,
120 SO_USERPUT_OFF = 147,
121 SO_CURSOR_SOFT_ON = 148,
122 SO_CURSOR_SOFT_OFF = 149,
123 SO_USERPUT_SOFT_ON = 150,
124 SO_USERPUT_SOFT_OFF = 151,
126 SO_CURSOR_IMAGE = 153,
127 SO_CURSOR_HOTSPOT = 154,
129 SO_CHARSET_SET = 156,
130 SO_CHARSET_COLOR = 157,
135 SO_WAIT_FOR_ACTOR = 168,
136 SO_WAIT_FOR_MESSAGE = 169,
137 SO_WAIT_FOR_CAMERA = 170,
138 SO_WAIT_FOR_SENTENCE = 171,
139 SO_ROOM_SCROLL = 172,
140 SO_ROOM_SCREEN = 174,
141 SO_ROOM_PALETTE = 175,
142 SO_ROOM_SHAKE_ON = 176,
143 SO_ROOM_SHAKE_OFF = 177,
144 SO_ROOM_INTENSITY = 179,
145 SO_ROOM_SAVEGAME = 180,
147 SO_RGB_ROOM_INTENSITY = 182,
148 SO_ROOM_SHADOW = 183,
149 SO_SAVE_STRING = 184,
150 SO_LOAD_STRING = 185,
151 SO_ROOM_TRANSFORM = 186,
152 SO_CYCLE_SPEED = 187,
156 SO_ACTOR_VARIABLE = 198,
159 SO_NIBBLE_ARRAY = 201,
161 SO_STRING_ARRAY = 203,
162 SO_UNDIM_ARRAY = 204,
163 SO_ASSIGN_STRING = 205,
165 SO_ASSIGN_INT_LIST = 208,
167 SO_ASSIGN_2DIM_LIST = 212,
168 SO_ROOM_NEW_PALETTE = 213,
169 SO_CURSOR_TRANSPARENT = 214,
170 SO_ACTOR_IGNORE_TURNS_ON = 215,
171 SO_ACTOR_IGNORE_TURNS_OFF = 216,
174 SO_ALWAYS_ZCLIP_FT_DEMO = 225,
175 SO_WAIT_FOR_ANIMATION = 226,
176 SO_ACTOR_DEPTH = 227,
177 SO_ACTOR_WALK_SCRIPT = 228,
182 SO_WAIT_FOR_TURN = 232,
183 SO_ACTOR_WALK_PAUSE = 233,
184 SO_ACTOR_WALK_RESUME = 234,
185 SO_ACTOR_TALK_SCRIPT = 235,
191 #include "common/pack-start.h" 200 #include "common/pack-end.h" 213 for (uint i = 0; i <
ARRAYSIZE(text); i++) text[i] = 0;
221 uint16 scaleX, scaleY;
235 int _blastObjectQueuePos;
236 int _blastObjectRectsQueue = 0;
253 bool _forcedWaitForMessage;
259 void resetScumm()
override;
262 void setupOpcodes()
override;
264 void scummLoop_handleSaveLoad()
override;
265 void scummLoop_handleActors()
override;
268 void setupScummVars()
override;
269 virtual void decodeParseString(
int a,
int b);
270 void readArrayFromIndexFile()
override;
272 byte *getStringAddress(ResId idx)
override;
273 void readMAXS(
int blockSize)
override;
275 void palManipulateInit(
int resID,
int start,
int end,
int time)
override;
276 void drawDirtyScreenParts()
override;
278 int getStackList(
int *args, uint maxnum);
279 int popRoomAndObj(
int *room);
282 byte *defineArray(
int array,
int type,
int dim2,
int dim1);
283 int findFreeArrayId();
285 void nukeArray(
int array);
286 void removeBlastObjects();
287 void restoreBlastObjectsRects();
290 virtual int readArray(
int array,
int index,
int base);
291 virtual void writeArray(
int array,
int index,
int base,
int value);
292 void shuffleArray(
int num,
int minIdx,
int maxIdx);
294 void setDefaultCursor()
override;
295 void setCursorTransparency(
int a)
override;
296 void setCursorHotspot(
int x,
int y)
override;
298 virtual void setCursorFromImg(uint img, uint room, uint imgindex);
299 void useIm01Cursor(
const byte *im,
int w,
int h);
300 void useBompCursor(
const byte *im,
int w,
int h);
301 void grabCursor(
int x,
int y,
int w,
int h);
302 void setCursorFromBuffer(
const byte *ptr,
int width,
int height,
int pitch,
bool preventScale =
false)
override;
305 virtual void drawBlastTexts() {}
306 virtual void removeBlastTexts() {}
308 void enqueueObject(
int objectNumber,
int objectX,
int objectY,
int objectWidth,
309 int objectHeight,
int scaleX,
int scaleY,
int image,
int mode);
310 void drawBlastObjects();
315 void clearDrawQueues()
override;
317 int getBannerColor(
int bannerId)
override;
318 const char *getGUIString(
int stringId)
override;
319 void setSkipVideo(
int value)
override { _skipVideo = value; }
320 void setUpMainMenuControls()
override;
323 bool akos_increaseAnims(
const byte *akos,
Actor *a);
324 bool akos_increaseAnim(
Actor *a,
int i,
const byte *aksq,
const uint16 *akfo,
int numakfo);
326 void akos_queCommand(byte cmd,
Actor *a,
int param_1,
int param_2);
327 virtual void akos_processQueue();
329 void processActors()
override;
331 int getSpecialBox(
int x,
int y);
333 int getDistanceBetween(
bool is_obj_1,
int b,
int c,
bool is_obj_2,
int e,
int f);
336 void o6_setBlastObjectWindow();
339 void o6_pushByteVar();
340 void o6_pushWordVar();
341 void o6_byteArrayRead();
342 void o6_wordArrayRead();
343 void o6_byteArrayIndexedRead();
344 void o6_wordArrayIndexedRead();
360 void o6_writeByteVar();
361 void o6_writeWordVar();
362 void o6_byteArrayWrite();
363 void o6_wordArrayWrite();
364 void o6_byteArrayIndexedWrite();
365 void o6_wordArrayIndexedWrite();
366 void o6_byteVarInc();
367 void o6_wordVarInc();
368 void o6_byteArrayInc();
369 void o6_wordArrayInc();
370 void o6_byteVarDec();
371 void o6_wordVarDec();
372 void o6_byteArrayDec();
373 void o6_wordArrayDec();
377 void o6_startScript();
378 void o6_startScriptQuick();
379 void o6_startObject();
380 void o6_drawObject();
381 void o6_drawObjectAt();
382 void o6_stopObjectCode();
383 void o6_endCutscene();
386 void o6_freezeUnfreeze();
387 void o6_cursorCommand();
389 void o6_ifClassOfIs();
395 void o6_startSound();
397 void o6_startMusic();
398 void o6_stopObjectScript();
399 void o6_panCameraTo();
400 void o6_actorFollowCamera();
401 void o6_setCameraAt();
403 void o6_stopScript();
404 void o6_walkActorToObj();
405 void o6_walkActorTo();
406 void o6_putActorAtXY();
407 void o6_putActorAtObject();
409 void o6_animateActor();
410 void o6_doSentence();
411 void o6_pickupObject();
412 void o6_loadRoomWithEgo();
413 void o6_getRandomNumber();
414 void o6_getRandomNumberRange();
415 void o6_getActorMoving();
416 void o6_isScriptRunning();
417 void o6_getActorRoom();
418 void o6_getObjectX();
419 void o6_getObjectY();
420 void o6_getObjectOldDir();
421 void o6_getObjectNewDir();
422 void o6_getActorWalkBox();
423 void o6_getActorCostume();
424 void o6_findInventory();
425 void o6_getInventoryCount();
426 void o6_getVerbFromXY();
427 void o6_beginOverride();
428 void o6_endOverride();
429 void o6_setObjectName();
430 void o6_isSoundRunning();
431 void o6_setBoxFlags();
432 void o6_createBoxMatrix();
433 void o6_resourceRoutines();
437 void o6_getActorFromXY();
438 void o6_findObject();
439 void o6_pseudoRoom();
440 void o6_getActorElevation();
441 void o6_getVerbEntrypoint();
443 void o6_saveRestoreVerbs();
445 void o6_getActorWidth();
447 void o6_getActorScaleX();
448 void o6_getActorAnimCounter();
449 void o6_soundKludge();
452 void o6_isActorInBox();
454 void o6_delaySeconds();
455 void o6_delayMinutes();
456 void o6_stopSentence();
459 void o6_printDebug();
460 void o6_printSystem();
461 void o6_printActor();
467 void o6_startObjectQuick();
468 void o6_startScriptQuick2();
469 void o6_dim2dimArray();
471 void o6_distObjectObject();
472 void o6_distObjectPt();
474 virtual void o6_kernelSetFunctions();
475 void o6_delayFrames();
477 void o6_pickOneOfDefault();
478 void o6_jumpToScript();
479 void o6_isRoomScriptRunning();
480 void o6_kernelGetFunctions();
481 void o6_getAnimateVariable();
482 void o6_drawBlastObject();
483 void o6_getActorLayer();
484 void o6_stampObject();
487 void o6_stopTalking();
488 void o6_findAllObjects();
489 void o6_pickVarRandom();
490 void o6_getDateTime();
497 byte VAR_STRING2DRAW;
499 byte VAR_TIMEDATE_YEAR;
500 byte VAR_TIMEDATE_MONTH;
501 byte VAR_TIMEDATE_DAY;
502 byte VAR_TIMEDATE_HOUR;
503 byte VAR_TIMEDATE_MINUTE;
504 byte VAR_TIMEDATE_SECOND;
#define ARRAYSIZE(x)
Definition: util.h:91
Definition: scumm_v6.h:202
Definition: keyboard.h:294
Definition: scumm_v6.h:29
Definition: scumm_v6.h:218
Definition: detection.h:131