ScummVM API documentation
functionlist.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 SLUDGE_FUNCTIONLIST_H
23#define SLUDGE_FUNCTIONLIST_H
24
25/*
26 This is the list of the built in functions
27
28 true or false states if it's a used function
29 in the current version of the engine,
30 but that value currently isn't used anywhere
31 */
32
33namespace Sludge {
34
35#define FUNC(special,name,paramNum) {#name, builtIn_ ## name, paramNum},
36static builtInFunctionData builtInFunctionArray[] = {
37 FUNC(true, say, -1)
38 FUNC(true, skipSpeech, 0)
39 FUNC(true, statusText, 1)
40 FUNC(true, pause, 1)
41 FUNC(true, onLeftMouse, -1)
42 FUNC(true, onRightMouse, -1)
43 FUNC(true, setCursor, 1)
44 FUNC(true, addOverlay, 3)
45 FUNC(true, addCharacter, 4)
46 FUNC(true, playSound, 1)
47 FUNC(true, getMouseX, 0)
48 FUNC(true, getMouseY, 0)
49 FUNC(true, addScreenRegion, 8)
50 FUNC(true, onMoveMouse, -1)
51 FUNC(true, onFocusChange, -1)
52 FUNC(true, getOverObject, 0)
53 FUNC(true, blankScreen, 0)
54 FUNC(true, moveCharacter, -1)
55 FUNC(true, onKeyboard, -1)
56 FUNC(true, getObjectX, 1)
57 FUNC(true, getObjectY, 1)
58 FUNC(true, random, 1)
59 FUNC(true, spawnSub, 1)
60 FUNC(true, blankArea, 4)
61 FUNC(true, hideCharacter, 1)
62 FUNC(true, showCharacter, 1)
63 FUNC(true, callEvent, 2)
64 FUNC(true, removeScreenRegion, 1)
65 FUNC(true, animate, 2)
66 FUNC(true, turnCharacter, 2)
67 FUNC(true, removeAllCharacters, 0)
68 FUNC(true, removeAllScreenRegions, 0)
69 FUNC(true, setScale, 2)
70 FUNC(true, newStack, -1)
71 FUNC(true, pushToStack, 2)
72 FUNC(true, popFromStack, 1)
73 FUNC(true, clearStatus, 0)
74 FUNC(true, addStatus, 0)
75 FUNC(true, removeLastStatus, 0)
76 FUNC(true, lightStatus, 1)
77 FUNC(true, getStatusText, 0)
78 FUNC(true, setStatusColour, 3)
79 FUNC(true, deleteFromStack, 2)
80 FUNC(true, freeze, 0)
81 FUNC(true, unfreeze, 0)
82 FUNC(true, pasteImage, 3)
83 FUNC(true, copyStack, 1)
84 FUNC(true, completeTimers, 0)
85 FUNC(true, setCharacterDrawMode, 2)
86 FUNC(true, anim, -1)
87 FUNC(true, costume, -1)
88 FUNC(true, pickOne, -1)
89 FUNC(true, setCostume, 2)
90 FUNC(true, wait, 2)
91 FUNC(true, somethingSpeaking, 0)
92 FUNC(true, substring, 3)
93 FUNC(true, stringLength, 1)
94 FUNC(true, darkBackground, 0)
95 FUNC(true, saveGame, 1)
96 FUNC(true, loadGame, 1)
97 FUNC(true, quitGame, 0)
98 FUNC(true, rename, 2)
99 FUNC(true, stackSize, 1)
100 FUNC(true, pasteString, 3)
101 FUNC(true, startMusic, 3)
102 FUNC(true, setDefaultMusicVolume, 1)
103 FUNC(true, setMusicVolume, 2)
104 FUNC(true, stopMusic, 1)
105 FUNC(true, stopSound, 1)
106 FUNC(true, setFont, 3)
107 FUNC(true, alignStatus, 1)
108 FUNC(true, showFloor, 0)
109 FUNC(true, showBoxes, 0)
110 FUNC(true, positionStatus, 2)
111 FUNC(true, setFloor, 1)
112 FUNC(true, forceCharacter, -1)
113 FUNC(true, jumpCharacter, -1)
114 FUNC(true, peekStart, 1)
115 FUNC(true, peekEnd, 1)
116 FUNC(true, enqueue, 2)
117 FUNC(true, setZBuffer, 1)
118 FUNC(true, getMatchingFiles, 1)
119 FUNC(true, inFont, 1)
120 FUNC(true, onLeftMouseUp, -1)
121 FUNC(true, onRightMouseUp, -1)
122 FUNC(true, loopSound, -1)
123 FUNC(true, removeCharacter, 1)
124 FUNC(true, stopCharacter, 1)
125 FUNC(true, launch, 1)
126 FUNC(true, howFrozen, 0)
127 FUNC(true, setPasteColour, 3)
128 FUNC(true, setLitStatusColour, 3)
129 FUNC(true, fileExists, 1)
130 FUNC(true, floatCharacter, 2)
131 FUNC(true, cancelSub, 1)
132 FUNC(true, setCharacterWalkSpeed, 2)
133 FUNC(true, deleteAllFromStack, 2)
134 FUNC(true, setCharacterExtra, 2)
135 FUNC(true, mixOverlay, 3)
136 FUNC(true, pasteCharacter, 1)
137 FUNC(true, setSceneDimensions, 2)
138 FUNC(true, aimCamera, 2)
139 FUNC(true, getMouseScreenX, 0)
140 FUNC(true, getMouseScreenY, 0)
141 FUNC(true, setDefaultSoundVolume, 1)
142 FUNC(true, setSoundVolume, 2)
143 FUNC(true, setSoundLoopPoints, 3)
144 FUNC(true, setSpeechMode, 1)
145 FUNC(true, setLightMap, -1)
146 FUNC(true, think, -1)
147 FUNC(true, getCharacterDirection, 1)
148 FUNC(true, isCharacter, 1)
149 FUNC(true, isScreenRegion, 1)
150 FUNC(true, isMoving, 1)
151 FUNC(true, deleteFile, 1)
152 FUNC(true, renameFile, 2)
153 FUNC(true, hardScroll, 1)
154 FUNC(true, stringWidth, 1)
155 FUNC(true, setSpeechSpeed, 1)
156 FUNC(true, normalCharacter, 1)
157 FUNC(true, fetchEvent, 2)
158 FUNC(true, transitionLevel, 1)
159 FUNC(true, spinCharacter, 2)
160 FUNC(true, setFontSpacing, 1)
161 FUNC(true, burnString, 3)
162 FUNC(true, captureAllKeys, 1)
163 FUNC(true, cacheSound, 1)
164 FUNC(true, setCharacterSpinSpeed, 2)
165 FUNC(true, transitionMode, 1)
166 FUNC(false, _rem_movieStart, 1)
167 FUNC(false, _rem_movieAbort, 0)
168 FUNC(false, _rem_moviePlaying, 0)
169 FUNC(false, _rem_updateDisplay, 1)
170 FUNC(true, getSoundCache, 0)
171 FUNC(true, saveCustomData, 2)
172 FUNC(true, loadCustomData, 1)
173 FUNC(true, setCustomEncoding, 1)
174 FUNC(true, freeSound, 1)
175 FUNC(true, parallaxAdd, 3)
176 FUNC(true, parallaxClear, 0)
177 FUNC(true, setBlankColour, 3)
178 FUNC(true, setBurnColour, 3)
179 FUNC(true, getPixelColour, 2)
180 FUNC(true, makeFastArray, 1)
181 FUNC(true, getCharacterScale, 1)
182 FUNC(true, getLanguageID, 0)
183 FUNC(false, _rem_launchWith, 2)
184 FUNC(true, getFramesPerSecond, 0)
185 FUNC(true, showThumbnail, 3)
186 FUNC(true, setThumbnailSize, 2)
187 FUNC(true, hasFlag, 2)
188 FUNC(true, snapshotGrab, 0)
189 FUNC(true, snapshotClear, 0)
190 FUNC(true, bodgeFilenames, 1)
191 FUNC(false, _rem_registryGetString, 2)
192 FUNC(true, quitWithFatalError, 1)
193 FUNC(true, _rem_setCharacterAA, 4)
194 FUNC(true, _rem_setMaximumAA, 3)
195 FUNC(true, setBackgroundEffect, -1)
196 FUNC(true, doBackgroundEffect, 0)
197 FUNC(true, setCharacterAngleOffset, 2)
198 FUNC(true, setCharacterTransparency, 2)
199 FUNC(true, setCharacterColourise, 5)
200 FUNC(true, zoomCamera, 1)
201 FUNC(true, playMovie, 1)
202 FUNC(true, stopMovie, 0)
203 FUNC(true, pauseMovie, 0)
204};
205#undef FUNC
206
207const static int NUM_FUNCS = ARRAYSIZE(builtInFunctionArray);
208
209} // End of namespace Sludge
210
211#endif // SLUDGE_FUNCTIONLIST_H
#define ARRAYSIZE(x)
Definition: util.h:114