22 #ifndef SCUMM_SCRIPT_V2_H 23 #define SCUMM_SCRIPT_V2_H 25 #include "scumm/scumm_v3.h" 44 uint16 _inventoryOffset;
49 void resetScumm()
override;
52 int checkV2Inventory(
int x,
int y);
53 void redrawV2Inventory();
56 byte _hiLiteColorVerbArrow = 0x0E;
57 byte _hiLiteColorInvSentence = 0x0E;
60 void setupOpcodes()
override;
62 void setupScummVars()
override;
63 void resetScummVars()
override;
64 void decodeParseString()
override;
67 void terminateSaveMenuScript()
override;
71 void readIndexFile()
override;
72 void readClassicIndexFile();
73 void readEnhancedIndexFile();
74 void readGlobalObjects()
override;
75 void loadCharset(
int no)
override;
77 void runInputScript(
int clickArea,
int val,
int mode)
override;
78 void runInventoryScript(
int)
override;
79 void runInventoryScriptEx(
int)
override;
81 int getVar()
override;
83 void getResultPosIndirect();
84 void getResultPos()
override;
86 int readVar(uint var)
override;
87 void writeVar(uint var,
int value)
override;
90 virtual int getActiveObject();
91 void ifStateZeroCommon(byte type);
92 void ifStateNotZeroCommon(byte type);
93 void setStateCommon(byte type);
94 void clearStateCommon(byte type);
95 void stopScriptCommon(
int script);
97 void drawSentence()
override;
98 void resetSentence()
override;
99 void setUserState(byte state);
101 void beginCutscene(
int *args)
override { o2_cutscene(); }
102 void endCutscene()
override { o2_endCutscene(); }
104 void handleMouseOver(
bool updateInventory)
override;
105 void checkExecVerbs()
override;
106 void initV2MouseOver();
107 void initNESMouseOver();
109 void setBuiltinCursor(
int index)
override;
110 void setSnailCursor()
override;
111 void adaptCursorToVideoMode();
113 void drawPreposition(
int index);
115 void walkActorToObject(
int actor,
int obj);
118 void o2_actorFromPos();
121 void o2_addIndirect();
122 void o2_assignVarByte();
123 void o2_assignVarWordIndirect();
124 void o2_beginOverride();
125 void o2_chainScript();
126 void o2_setStateUnpickupable();
127 void o2_setStateTouchable();
128 void o2_setStateUnlocked();
129 void o2_setStateIntrinsicOff();
130 void o2_cursorCommand();
133 void o2_doSentence();
134 void o2_drawObject();
135 void o2_drawSentence();
137 void o2_endCutscene();
138 void o2_findObject();
139 void o2_getActorWalkBox();
143 void o2_getObjPreposition();
144 void o2_ifClassOfIs();
145 void o2_ifStatePickupable();
146 void o2_ifStateUntouchable();
147 void o2_ifStateLocked();
148 void o2_ifStateIntrinsicOn();
149 void o2_ifStateUnpickupable();
150 void o2_ifStateTouchable();
151 void o2_ifStateUnlocked();
152 void o2_ifStateIntrinsicOff();
154 void o2_isGreaterEqual();
156 void o2_isLessEqual();
158 void o2_loadRoomWithEgo();
159 void o2_panCameraTo();
160 void o2_pickupObject();
162 void o2_putActorAtObject();
163 void o2_putActorInRoom();
164 void o2_resourceRoutines();
167 void o2_getActorElevation();
168 void o2_setActorElevation();
170 void o2_setCameraAt();
171 void o2_setObjPreposition();
172 void o2_setOwnerOf();
173 void o2_setStatePickupable();
174 void o2_setStateUntouchable();
175 void o2_setStateLocked();
176 void o2_setStateIntrinsicOn();
177 void o2_startScript();
178 void o2_stopScript();
180 void o2_subIndirect();
181 void o2_switchCostumeSet();
183 void o2_waitForActor();
184 void o2_waitForMessage();
185 void o2_waitForSentence();
186 void o2_walkActorTo();
187 void o2_walkActorToObject();
189 byte VAR_SENTENCE_VERB;
190 byte VAR_SENTENCE_OBJECT1;
191 byte VAR_SENTENCE_OBJECT2;
192 byte VAR_SENTENCE_PREPOSITION;
193 byte VAR_BACKUP_VERB;
197 byte VAR_CLICK_OBJECT;
Definition: scumm_v3.h:58
Definition: serializer.h:79
Definition: scumm_v2.h:32
Definition: keyboard.h:294
Definition: scumm_v2.h:34
Definition: detection.h:131