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