ScummVM API documentation
script.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef CRUISE_SCRIPT_H
23#define CRUISE_SCRIPT_H
24
25namespace Cruise {
26
27enum scriptTypeEnum {
28 scriptType_MinusPROC = -20,
29 scriptType_Minus30 = -30,
30 scriptType_PROC = 20,
31 scriptType_REL = 30
32};
33
35 struct scriptInstanceStruct *nextScriptPtr;
36 int16 ccr;
37 int16 scriptOffset;
38 uint8 *data;
39 int16 dataSize;
40 int16 scriptNumber;
41 int16 overlayNumber;
42 int16 sysKey;
43 int16 freeze;
44 scriptTypeEnum type;
45 int16 var16;
46 int16 var18;
47 int16 var1A;
48};
49
50extern scriptInstanceStruct relHead;
51extern scriptInstanceStruct procHead;
52extern scriptInstanceStruct *currentScriptPtr;
53
54void setupFuncArray();
55int8 getByteFromScript();
56
57int removeScript(int overlay, int idx, scriptInstanceStruct * headPtr);
58uint8 *attacheNewScriptToTail(scriptInstanceStruct *scriptHandlePtr, int16 overlayNumber, int16 param, int16 arg0, int16 arg1, int16 arg2, scriptTypeEnum scriptType);
59void manageScripts(scriptInstanceStruct * scriptHandle);
60
61} // End of namespace Cruise
62
63#endif
Definition: actor.h:25
Definition: script.h:34