22 #ifndef ILLUSIONS_DUCKMAN_SPECIALCODE_H 23 #define ILLUSIONS_DUCKMAN_SPECIALCODE_H 25 #include "illusions/illusions.h" 26 #include "illusions/specialcode.h" 27 #include "common/algorithm.h" 31 class IllusionsEngine_Duckman;
33 class DuckmanInventory;
43 void run(uint32 specialCodeId,
OpCall &opCall)
override;
46 typedef SpecialCodeMap::iterator SpecialCodeMapIterator;
49 SpecialCodeMap _specialCodeMap;
54 uint _chinesePuzzleIndex;
55 byte _chinesePuzzleAnswers[3];
58 bool _wasCursorHoldingElvisPoster;
59 int16 _savedTempMasterSfxVolume;
60 int16 _lastRandomSoundIndex;
65 void runSpecialCode(uint32 specialCodeId,
OpCall &opCall);
66 void spcStartScreenShaker(
OpCall &opCall);
67 void spcSetCursorHandMode(
OpCall &opCall);
68 void spcResetChinesePuzzle(
OpCall &opCall);
69 void spcAddChinesePuzzleAnswer(
OpCall &opCall);
70 void spcOpenInventory(
OpCall &opCall);
71 void spcPutBackInventoryItem(
OpCall &opCall);
72 void spcClearInventorySlot(
OpCall &opCall);
73 void spcAddPropertyTimer(
OpCall &opCall);
74 void spcSetPropertyTimer(
OpCall &opCall);
75 void spcRemovePropertyTimer(
OpCall &opCall);
76 void spcInitTeleporterPosition(
OpCall &opCall);
77 void spcUpdateTeleporterPosition(
OpCall &opCall);
78 void spcCenterNewspaper(
OpCall &opCall);
79 void spcStopScreenShaker(
OpCall &opCall);
80 void spcIncrCounter(
OpCall &opCall);
81 void spcUpdateObject272Sequence(
OpCall &opCall);
82 void spcPlayRandomSound(
OpCall &opCall);
83 void spcHoldGlowingElvisPoster(
OpCall &opCall);
84 void spcStartCredits(
OpCall &opCall);
85 void spcSetCursorInventoryMode(
OpCall &opCall);
86 void spcCenterCurrentScreenText(
OpCall &opCall);
87 void spcSetDefaultTextCoords(
OpCall &opCall);
88 void spcSetTextDuration(
OpCall &opCall);
89 void spcSetTempMasterSfxVolume(
OpCall &opCall);
90 void spcRestoreTempMasterSfxVolume(
OpCall &opCall);
92 void updateTeleporterProperties();
95 int updateCredits(uint flags);
96 char *readNextCreditsLine();
98 void charToWChar(
char *text, uint16 *wtext, uint size);
104 #endif // ILLUSIONS_ILLUSIONS_H
Definition: duckman_credits.h:38
Definition: duckman_inventory.h:41
Definition: duckman_specialcode.h:38
Definition: specialcode.h:44
Definition: illusions_duckman.h:78
Definition: propertytimers.h:43
Definition: scriptopcodes.h:32