22 #ifndef ULTIMA8_CONVERT_U8_CONVERTUSECODECRUSADER_H 23 #define ULTIMA8_CONVERT_U8_CONVERTUSECODECRUSADER_H 25 #include "ultima/ultima8/convert/convert_usecode.h" 32 const char*
const *intrinsics()
override {
return _intrinsics; };
33 const char*
const *event_names()
override {
return _event_names; };
35 static const char*
const _event_names[];
37 static const char*
const _intrinsics[512];
41 const char*
const ConvertUsecodeCrusader::_intrinsics[] = {
43 "byte World::I_getAlertActive(void)",
44 "int16 Item::I_getFrame(Item *)",
45 "void Item::I_setFrame(Item *, frame)",
46 "int16 Item::I_getMapArray(Item *)",
47 "int16 Item::I_getStatus(Item *)",
48 "void Item::I_orStatus(Item *, uint16 flags)",
49 "int16 Item::I_equip(6 bytes)",
50 "byte Item::I_isOnScreen(Item *)",
51 "byte Actor::I_isNPC(Item *)",
52 "byte Item::I_getZ(Item *)",
53 "void Item::I_destroy(Item *)",
54 "int16 Actor::I_GetNPCDataField0x63_00B(Actor *)",
55 "void Ultima8Engine::I_setAvatarInStasis(int)",
56 "byte Item::I_getDirToItem(Item *, itemno)",
57 "int16 Actor::I_turnToward(Actor *, direction, dir_16)",
58 "void I_playFlic(void), int16 I_playFlic(Item *, char *name, int16 sizex, int16 sizey)",
60 "int16 Item::I_getQLo(Item *)",
61 "int16 Actor::I_getMap(4 bytes)",
62 "void MusicProcess:I_playMusic(int trackno)",
63 "int16 Item::I_getX(Item *)",
64 "int16 Item::I_getY(Item *)",
65 "void AudioProcess::I_playSFXCru(Item *, uint16 sfxnum)",
66 "int16 Item::I_getShape(Item *)",
67 "void Item::I_explode(Item *, exptype, destroy_item)",
68 "int16 UCMachine::I_rndRange(uint16 x, uint16 y)",
69 "byte Item::I_legalCreateAtCoords(Item *, int16 shapeno, int16 frame, int16 x, int16 y, int16 z)",
70 "void Item::I_andStatus(Item *, uint16 status)",
71 "int16 World::I_getControlledNPCNum()",
72 "byte Actor::I_getDir(4 bytes)",
73 "int16 Actor::I_getLastAnimSet(4 bytes)",
74 "int16 Item::I_fireWeapon(Item *, x, y, z, byte, int, byte)",
75 "byte Item::I_create(Item *, uint16 shapenum, uint16 framenum)",
77 "void Item::I_popToCoords(Item *, uint16 x, uint16 y, uint16 z)",
78 "void Actor::I_setDead(4 bytes)",
79 "void Item::I_push(Item *)",
80 "int16 Item::I_getEtherealTop(void)",
81 "void Item::I_setShape(Item *, int16 shapeno)",
82 "void Item::I_touch(Item *)",
83 "int16 Item::I_getQHi(Item *)",
84 "int16 I_getClosestDirectionInRange(x1, y1, x2, y2, numdirs, mindir, maxdir)",
85 "int16 Item::I_hurl(Item *,8 bytes)",
86 "int16 World::I_gameDifficulty(void)",
87 "void AudioProcess::I_playAmbientSFXCru(Item *, sndno)",
88 "int16 Item::I_getQLo(Item *)",
89 "byte Item::I_inFastArea(Item *)",
90 "void Item::I_setQHi(Item *, uint16 qhi)",
91 "byte Item::I_legalMoveToPoint(Item *, Point *, int16 force)",
92 "byte CurrentMap::I_canExistAtPoint(int, int, shapeno, Point *)",
94 "void Item::I_pop(Item *)",
95 "void Item::I_andStatus(Item *, uint16 status)",
96 "void Item::I_receiveHit(Item *, other, dir, damage, damagetype)",
97 "byte Actor::I_isBusy(Actor *)",
98 "int16 Item::I_getDirFromTo16(x1, y1, x2, y2)",
99 "byte Actor::I_isKneeling(Actor *)",
100 "int16 Actor::I_doAnim(12 bytes)",
101 "byte MainActor::I_addItemCru(4 bytes)",
102 "void AudioProcess::I_stopSFXCru(Item *, int16 sndno)",
103 "byte Actor::I_isDead(Item *)",
104 "byte AudioProcess::I_isSFXPlayingForObject(Item *, int16 unk)",
105 "void Item::I_setQLo(Item *, int16 qlo)",
106 "int16 Item::I_getItemFamily(Item *)",
107 "void Container::I_destroyContents(Item *)",
108 "void Item::I_fallProbably_03E(Item *)",
109 "int16 Egg::I_getEggId(Item *)",
111 "void CameraProcess::I_moveTo(x, y, z)",
112 "void CameraProcess::I_setCenterOn(objid)",
113 "byte Item::I_getRangeIfVisible(Item *, otheritem)",
114 "void AudioProcess::I_playSFXCru(Item *, soundno)",
115 "byte Item::I_IsOn(Item *, uint16 itemno)",
116 "int16 Item::I_getQHi(Item *)",
117 "byte Item::I_IsOn(Item *, uint16 itemno))",
118 "int16 Item::I_getQHi(Item *)",
119 "byte Item::I_IsOn(Item *, uint16 itemno)",
120 "int16 Item::I_getQHi(Item *)",
121 "byte Item::I_IsOn(Item *, uint16 itemno)",
122 "int16 Item::I_getQHi(Item *)",
123 "byte Item::I_IsOn(Item *, uint16 itemno)",
124 "int16 Item::I_getQHi(Item *)",
125 "byte Item::I_IsOn(Item *, uint16 itemno)",
126 "int16 Item::I_getQHi(Item *)",
128 "int16 Actor::I_getCurrentActivityNo(Actor *)",
129 "void Actor::I_clrInCombat(Actor *)",
130 "void Actor::I_setDefaultActivity0(Actor *, int)",
131 "void Actor::I_setDefaultActivity1(Actor *, int)",
132 "void Actor::I_setDefaultActivity2(Actor *, int)",
133 "void Actor::I_setActivity(Actor *, int)",
134 "void World::I_setControlledNPCNum(int itemno)",
135 "int16 Item::I_getSurfaceWeight(Item *)",
136 "byte Item::I_isCentreOn(Item *, uint16 other)",
137 "void Item::I_setFrame(Item *, frame)",
138 "int16 Actor::I_getLastAnimSet(4 bytes)",
139 "byte Item::I_legalCreateAtPoint(Item *, int16 shape, int16 frame, Point *)",
140 "void Item::I_getPoint(Item *, Point *)",
141 "void StatusGump::I_hideStatusGump(void)",
142 "int16 MovieGump::I_playMovieOverlay(uint32, char *, int16 a, int16 b)",
143 "void StatusGump::I_showStatusGump(void)",
145 "void Actor::I_setDead(4 bytes)",
146 "void Actor::I_create(8 bytes)",
147 "void CameraProcess::I_somethingAboutCameraUpdate(void)",
148 "void Actor::I_teleport(12 bytes)",
149 "void Item::I_getFootpad(Item *, uint *, uint *, uint *)",
150 "byte Item::I_isInNPC(Item *)",
151 "int16 Item::I_getQLo(Item *)",
152 "int16 Item::I_getNPCNum(Item *)",
153 "void Item::I_setNpcNum(Item *, uint16 npcnum)",
154 "void Item::I_andStatus(Item *, uint16 status)",
155 "void Item::I_move(Item *, int16 x, int16 y, uint16 z)",
156 "int16 Game::I_isViolenceEnabled(void)",
157 "void Kernel::I_resetRef(int16, int16)",
158 "int16 Item::I_getNPCNum(Item *)",
159 "void Item::I_andStatus(Item *, uint16 status)",
160 "byte Item::I_isCompletelyOn(Item *, uint16 other)",
162 "byte Ultima8Engine::I_getCrusaderTeleporting(void)",
163 "void Ultima8Engine::I_setCrusaderTeleporting(void)",
164 "void Ultima8Engine::I_setCruStasis(void)",
165 "void Actor::I_setDead(4 bytes)",
166 "void Ultima8Engine::I_clrCrusaderTeleporting(void)",
167 "void Ultima8Engine::I_clrCruStasis(void)",
168 "void AudioProcess::I_stopSFX(Item *)",
169 "int16 PaletteFaderProcess::I_fadeToBlack(void)",
170 "void MainActor::I_clrKeycards(void)",
171 "int16 MainActor::I_teleportToEgg(int, int, int)",
172 "int16 PaletteFaderProcess::I_fadeToGamePal(void)",
173 "void Actor::I_clrImmortal(Actor *)",
174 "int16 Actor::I_getHp(Actor *)",
175 "void Actor::I_setActivity(Actor *, int)",
176 "int16 Item::I_getQuality(Item *)",
177 "void Item::I_setQuality(Item *, int)",
179 "int16 Item::I_use(Item *)",
180 "int16 MainActor::I_getMaxEnergy(Actor *)",
181 "int16 Actor::I_getMana(Actor *)",
182 "void Actor::I_setMana(Actor *, int)",
183 "int16 Item::I_getQLo(Item *)",
184 "void Actor::I_setImmortal(Actor *)",
185 "int16 CameraProcess::I_getCameraX(void)",
186 "int16 CameraProcess::I_getCameraY(void)",
187 "void Item::I_setMapArray(Item *, uint16 maparray)",
188 "int16 Item::I_getNpcNum(Item *)",
189 "void Item::I_shoot(Item *, Point3 *, int speed, int gravity)",
190 "int16 Item::I_enterFastArea(Item *)",
191 "void Item::I_setIsBroken(Item *)",
192 "int16 Item::I_hurl(Item *,8 bytes)",
193 "int16 Item::I_getNPCNum(Item *)",
194 "void PaletteFaderProcess::I_jumpToAllBlack(void)",
196 "void MusicProcess::I_stopMusic(void)",
197 "void I_setSomeMovieGlobal(void)",
198 "void I_playMovieCutsceneFullscreen(char *)",
199 "void I_clearSomeMovieGlobal(void)",
200 "void Game::I_playCredits(void)",
201 "byte Kernel::I_getCurrentKeyDown(void)",
202 "int16 MainActor::I_teleportToEgg(int, int)",
203 "void PaletteFaderProcess:I_jumpToGreyScale(void)",
204 "void I_resetVargasShieldTo500(void)",
205 "void Item::I_andStatus(Item *, uint16 status)",
206 "void PaletteFaderProcess::I_jumpToNormalPalette(void)",
207 "int16 PaletteFaderProcess::I_fadeToGamePal(nsteps)",
208 "int16 PaletteFaderProcess::I_fadeToGamePalWithParam(nsteps, unk)",
209 "int16 PaletteFaderProcess::I_fadeToBlack(nsteps)",
210 "int16 PaletteFaderProcess::I_fadeToBlackWithParam(nsteps, unk)",
211 "int16 PaletteFaderProcess::I_fadeToColor(r, g, b, nsteps, unk)",
213 "void Actor::I_setDead(Actor *)",
214 "int16 Item::I_getQLo(Item *)",
215 "int16 Item::I_getUnkEggType(Item *)",
216 "void Egg::I_setEggXRange(Egg *, int)",
217 "byte Item::I_overlaps(Item *, uint16 unk)",
218 "byte Item::I_isOn(Item *, itemno)",
219 "int16 I_getAnimationsEnabled(void)",
220 "int16 Egg::I_getEggXRange(Egg *)",
221 "void Actor::I_setDead(Actor *)",
222 "void I_playMovieCutsceneFullscreen(char *)",
223 "void AudioProcess::I_playSFX(2 bytes)",
224 "byte Actor::I_isFalling(Actor *)",
225 "int16 Item::I_getFamilyOfType(Item *)",
226 "int16 Item::I_getNPCNum(Item *)",
227 "int16 Item::I_getQLo(Item *)",
228 "int16 Item::I_getQHi(Item *)",
230 "int16 Item::I_unequip(6 bytes)",
231 "int16 Item::I_spawnUsecodeEvent0x13(Item *, 2 bytes)",
232 "void Item::I_andStatus(Item *, uint16 status)",
233 "int32 I_getCurrentTimerTick(void)",
234 "void Ultima8Engine::I_setAlertActive(void)",
235 "int16 Item::I_equip(6 bytes)",
236 "void Ultima8Engine::I_clrAlertActive(void)",
237 "int16 Ultima8Engine::I_getAvatarInStasis(void)",
238 "byte MainActor::I_addItemCru(4 bytes)",
239 "int16 Actor::I_getLastAnimSet(4 bytes)",
240 "void Item::I_setQuality(Item *, int)",
241 "byte CurrentMap::I_canExistAt(int shapeno, word x, word y, byte z)",
242 "byte Item::I_isOn(Item *, itemno)",
243 "int16 Item::I_hurl(Item *,8 bytes)",
244 "int16 Item::I_getQHi(Item *)",
245 "void Item::I_andStatus(Item *, uint16 status)",
247 "int16 Item::I_hurl(Item *,8 bytes)",
248 "void Item::I_andStatus(Item *, uint16 status)",
249 "int16 Item::I_hurl(Item *,8 bytes)",
250 "void Item::I_andStatus(Item *, uint16 status)",
251 "int16 KeypadGump::I_showKeypad(int targetCode)",
252 "byte Item::I_isOn(Item *, itemno)",
253 "void SpriteProcess::I_createSprite(word, word, word, word, uword, uword, ubyte)",
254 "byte Item::I_getDirFromItem(Item *, itemno)",
255 "int16 Item::I_hurl(Item *,8 bytes)",
256 "int16 Item::I_getQHi(Item *)",
257 "byte Actor::I_addHp(Actor *, int)",
258 "void MainActor::I_switchMap(int16 mapnum)",
259 "byte Actor::I_getInCombat(Actor *)",
260 "void Actor::I_setActivity(Actor *, int)",
261 "int16 Game::I_isReleaseBuild(void)",
262 "void Item::I_setQAndCombine(Item *, int16 q)",
264 "int16 Item::I_use(Item *)",
265 "void AudioProcess:I_stopAllSFX(void)",
266 "void I_playMovieCutscene(int *item,char *flicname,word sizex,word sizey)",
267 "void I_clearKeyboardState(void)",
268 "void I_playSFX(2 bytes)",
269 "int16 Item::I_use(Item *)",
270 "byte CameraProcess::I_getCameraZ(void)",
271 "int16 Actor::I_getLastAnimSet(4 bytes)",
272 "void Actor::I_setDead(4 bytes)",
273 "int16 Item::I_getQLo(Item *)",
274 "void PaletteFaderProcess::I_setPalToAllGrey(void)",
275 "void Actor::I_setActivity(Actor *, int)",
276 "byte Item::I_isOn(Item *, itemno)",
277 "int16 Actor::I_getLastActivityNo(Actor *)",
278 "void Actor::I_setCombatTactic(Actor *, int)",
279 "int16 Actor::I_getEquip(6 bytes)",
281 "void Actor::I_setEquip(8 bytes)",
282 "int16 Actor::I_getDefaultActivity0(Actor *)",
283 "int16 Actor::I_getDefaultActivity1(Actor *)",
284 "int16 Actor::I_getDefaultActivity2(Actor *)",
285 "int16 Actor::I_getLastAnimSet(4 bytes)",
286 "void Actor::I_setTarget(Actor *, uint16 target)",
287 "void Actor::I_SetNPCDataField0x63_0E6(Actor *, int)",
288 "void Actor::I_setDead(4 bytes)",
289 "int16 Item::I_cast(6 bytes)",
290 "void Item::I_andStatus(Item *, uint16 status)",
291 "int16 Item::I_getQLo(Item *)",
292 "int16 I_GetQOfAvatarInventoryItem0x4ed_0EB(void)",
293 "void Item::I_popToEnd(Item*, int)",
294 "void Item::I_popToContainer(Item*, int)",
295 "void BatteryChargerProcess::I_create(void)",
296 "int16 Kernel::I_getNumProcesses(int, int)",
298 "int16 Item::I_getQHi(Item *)",
299 "byte Item::I_isOn(Item *, itemno)",
300 "void Actor::I_setActivity(Actor *, int)",
301 "int16 Item::I_getQHi(Item *)",
302 "int16 Item::I_getQ(Item *)",
303 "void Item::I_setQ(Item *, uint16 q)",
304 "void CruHealer::I_create_0F6(void)",
305 "int16 Item::I_hurl(Item *,8 bytes)",
306 "int16 Item::I_getNPCNum(Item *)",
307 "int16 Item::I_hurl(Item *,8 bytes)",
308 "byte Item::I_isOn(Item *, itemno)",
309 "int16 Item::I_getQHi(Item *)",
310 "void Item::I_andStatus(Item *, uint16 status)",
311 "byte MainActor::I_hasKeycard(int)",
312 "void ComputerGump::I_readComputer(char *)",
313 "int16 UCMachine::I_numToStr(int16 num)",
315 "int16 Item::I_getNPCNum(Item *)",
316 "void Item::I_andStatus(Item *, uint16 status)",
317 "int16 Item::I_getNPCNum(Item *)",
318 "byte Item::I_isCrusTypeNPC(uint16 shapenum)",
319 "void Item::I_andStatus(Item *, uint16 status)",
320 "int16 Item::I_getNPCNum(Item *)",
321 "void Item::I_andStatus(Item *, uint16 status)",
322 "int16 Item::I_getNPCNum(Item *)",
323 "void Item::I_andStatus(Item *, uint16 status)",
324 "int16 Item::I_getNPCNum(Item *)",
325 "void Item::I_andStatus(Item *, uint16 status)",
326 "int16 Item::I_getNPCNum(Item *)",
327 "void Item::I_andStatus(Item *, uint16 status)",
328 "int16 Item::I_getNPCNum(Item *)",
329 "void Item::I_andStatus(Item *, uint16 status)",
330 "int16 Item::I_getNPCNum(Item *)",
332 "void Item::I_andStatus(Item *, uint16 status)",
333 "int16 Item::I_getNPCNum(Item *)",
334 "byte Actor::I_getDir(Actor *)",
335 "int16 UCMachine::I_numToStr(int16 num)",
336 "void Item::I_andStatus(Item *, uint16 status)",
337 "int16 Item::I_getNPCNum(Item *)",
338 "byte Item::I_fireDistance(14 bytes)",
339 "void Item::I_andStatus(Item *, uint16 status)",
340 "int16 Item::I_hurl(Item *,8 bytes)",
341 "void Item::I_setIsBroken(Item *)",
342 "void Item::I_andStatus(Item *, uint16 status)",
343 "byte Item::I_getTypeFlag(Item *, uint16 shift)",
344 "int16 Item::I_getNPCNum(Item *)",
345 "int16 Item::I_hurl(Item *,8 bytes)",
346 "int16 Item::I_getCY(Item *)",
347 "byte Item::I_getCZ(Item *)",
349 "int16 Item::I_getCX(Item *)",
350 "byte Actor::I_getDir(4 bytes)",
351 "byte Actor::I_isDead(Item *)",
352 "int16 Item::I_getNPCNum(Item *)",
353 "int16 Actor::I_getLastAnimSet(4 bytes)",
354 "void Item::I_setQuality(Item *, int)",
355 "int16 UCMachine::I_numToStr(int16 num)",
356 "byte Item::I_getDirToCoords(Item *, uin16 x, uint16 y)",
357 "void Item::I_andStatus(Item *, uint16 status)",
358 "int16 Item::I_getNPCNum(Item *)",
359 "void Item::I_setIsBroken(Item *)",
360 "int16 IItem::I_getCY(Item *)",
361 "byte Item::I_isOn(Item *, itemno)",
362 "void Item::I_getFootpadData(Item *, uint *, uint *, uint *)",
363 "byte Actor::I_isDead(Item *)",
364 "int16 Actor::I_createActorCru(Item *, uint16 other_itemno)",
366 "void Actor::I_clrImmortal(Actor *)",
367 "void Actor::I_setActivity(Actor *, int)",
368 "void Item::I_andStatus(Item *, int16 status)",
369 "int16 Item::I_getQHi(Item *)",
370 "void WeaselGump::I_showGump(uint16 param)",
371 "void Actor::I_setDead(Actor *)",
372 "void UNUSEDInt136()",
373 "void UNUSEDInt137()" 376 const char *
const ConvertUsecodeCrusader::_event_names[] = {
383 "gotHit(uword, word)",
397 "avatarStoleSomething(uword)",
Definition: convert_usecode.h:28
Definition: detection.h:27
Definition: convert_usecode_crusader.h:30