22 #ifndef SCUMM_SCRIPT_V0_H 23 #define SCUMM_SCRIPT_V0_H 25 #include "scumm/scumm_v2.h" 41 enum WalkToObjectState {
42 kWalkToObjectStateDone = 0,
43 kWalkToObjectStateWalk = 1,
44 kWalkToObjectStateTurn = 2
59 int _sentenceNestedCount;
62 int _walkToObjectState;
63 bool _redrawSentenceLine;
68 void resetScumm()
override;
74 int DelayCalculateDelta();
77 void resetRoomObject(
ObjectData *od,
const byte *room,
const byte *searchptr = NULL)
override;
79 void setupOpcodes()
override;
81 void setupScummVars()
override;
82 void resetScummVars()
override;
83 void scummLoop(
int delta)
override;
84 void decodeParseString()
override;
86 void processInput()
override;
89 void terminateSaveMenuScript()
override;
91 bool objIsActor(
int obj)
override;
92 int objToActor(
int obj)
override;
93 int actorToObj(
int actor)
override;
98 void walkToActorOrObject(
int object);
101 virtual void runSentenceScript();
102 void checkAndRunSentenceScript()
override;
103 bool checkPendingWalkAction();
104 bool checkSentenceComplete();
105 void checkExecVerbs()
override;
106 void handleMouseOver(
bool updateInventory)
override;
107 int verbPrepIdType(
int verbid);
110 void verbDrawDemoString(
int VerbDemoNumber);
112 void clearSentenceLine();
113 void flushSentenceLine();
114 void drawSentenceObject(
int object);
115 void drawSentenceLine();
117 void setMode(byte mode);
119 void switchActor(
int slot);
121 int getVarOrDirectWord(byte mask)
override;
122 uint fetchScriptWord()
override;
124 int getActiveObject()
override;
126 void resetSentence()
override;
128 bool areBoxesNeighbors(
int box1nr,
int box2nr)
override;
130 bool ifEqualActiveObject2Common(
bool checkType);
132 int getCurrentLights()
const override;
135 void o_stopCurrentScript();
136 void o_walkActorToObject();
138 void o_getActorMoving();
139 void o_animateActor();
140 void o_putActorAtObject();
141 void o_pickupObject();
142 void o_setObjectName();
144 void o_lockCostume();
145 void o_loadCostume();
147 void o_loadRoomWithEgo();
153 void o_unlockCostume();
154 void o_unlockScript();
156 void o_getObjectOwner();
157 void o_getActorBitVar();
158 void o_setActorBitVar();
162 void o_ifEqualActiveObject2();
163 void o_ifNotEqualActiveObject2();
164 void o_getClosestActor();
168 void o_unlockSound();
170 void o_endCutscene();
172 void o_screenPrepare();
174 byte VAR_ACTIVE_OBJECT2;
175 byte VAR_IS_SOUND_RUNNING;
176 byte VAR_ACTIVE_VERB;
Definition: serializer.h:79
Definition: scumm_v2.h:32
Definition: scumm_v0.h:32
Definition: detection.h:132