OpenMW
components/compiler/opcodes.hpp
Go to the documentation of this file.
00001 #ifndef COMPILER_OPCODES_H
00002 #define COMPILER_OPCODES_H
00003 
00004 namespace Compiler
00005 {
00006     namespace Ai
00007     {
00008         const int opcodeAiTravel = 0x20000;
00009         const int opcodeAiTravelExplicit = 0x20001;
00010         const int opcodeAiEscort = 0x20002;
00011         const int opcodeAiEscortExplicit = 0x20003;
00012         const int opcodeGetAiPackageDone = 0x200007c;
00013         const int opcodeGetAiPackageDoneExplicit = 0x200007d;
00014         const int opcodeGetCurrentAiPackage = 0x20001ef;
00015         const int opcodeGetCurrentAiPackageExplicit = 0x20001f0;
00016         const int opcodeGetDetected = 0x20001f1;
00017         const int opcodeGetDetectedExplicit = 0x20001f2;
00018         const int opcodeAiWander = 0x20010;
00019         const int opcodeAiWanderExplicit = 0x20011;
00020         const int opcodeAIActivate = 0x2001e;
00021         const int opcodeAIActivateExplicit = 0x2001f;
00022         const int opcodeAiEscortCell = 0x20020;
00023         const int opcodeAiEscortCellExplicit = 0x20021;
00024         const int opcodeAiFollow = 0x20022;
00025         const int opcodeAiFollowExplicit = 0x20023;
00026         const int opcodeAiFollowCell = 0x20024;
00027         const int opcodeAiFollowCellExplicit = 0x20025;
00028         const int opcodeSetHello = 0x200015c;
00029         const int opcodeSetHelloExplicit = 0x200015d;
00030         const int opcodeSetFight = 0x200015e;
00031         const int opcodeSetFightExplicit = 0x200015f;
00032         const int opcodeSetFlee = 0x2000160;
00033         const int opcodeSetFleeExplicit = 0x2000161;
00034         const int opcodeSetAlarm = 0x2000162;
00035         const int opcodeSetAlarmExplicit = 0x2000163;
00036         const int opcodeModHello = 0x20001b7;
00037         const int opcodeModHelloExplicit = 0x20001b8;
00038         const int opcodeModFight = 0x20001b9;
00039         const int opcodeModFightExplicit = 0x20001ba;
00040         const int opcodeModFlee = 0x20001bb;
00041         const int opcodeModFleeExplicit = 0x20001bc;
00042         const int opcodeModAlarm = 0x20001bd;
00043         const int opcodeModAlarmExplicit = 0x20001be;
00044         const int opcodeGetHello = 0x20001bf;
00045         const int opcodeGetHelloExplicit = 0x20001c0;
00046         const int opcodeGetFight = 0x20001c1;
00047         const int opcodeGetFightExplicit = 0x20001c2;
00048         const int opcodeGetFlee = 0x20001c3;
00049         const int opcodeGetFleeExplicit = 0x20001c4;
00050         const int opcodeGetAlarm = 0x20001c5;
00051         const int opcodeGetAlarmExplicit = 0x20001c6;
00052         const int opcodeGetLineOfSight = 0x2000222;
00053         const int opcodeGetLineOfSightExplicit = 0x2000223;
00054         const int opcodeToggleAI = 0x2000224;
00055         const int opcodeToggleAIExplicit = 0x2000225;
00056     }
00057 
00058     namespace Animation
00059     {
00060         const int opcodeSkipAnim = 0x2000138;
00061         const int opcodeSkipAnimExplicit = 0x2000139;
00062         const int opcodePlayAnim = 0x20006;
00063         const int opcodePlayAnimExplicit = 0x20007;
00064         const int opcodeLoopAnim = 0x20008;
00065         const int opcodeLoopAnimExplicit = 0x20009;
00066     }
00067 
00068     namespace Cell
00069     {
00070         const int opcodeCellChanged = 0x2000000;
00071         const int opcodeCOC = 0x2000026;
00072         const int opcodeCOE = 0x2000226;
00073         const int opcodeGetInterior = 0x2000131;
00074         const int opcodeGetPCCell = 0x2000136;
00075         const int opcodeGetWaterLevel = 0x2000141;
00076         const int opcodeSetWaterLevel = 0x2000142;
00077         const int opcodeModWaterLevel = 0x2000143;
00078     }
00079 
00080     namespace Console
00081     {
00082 
00083     }
00084 
00085     namespace Container
00086     {
00087         const int opcodeAddItem = 0x2000076;
00088         const int opcodeAddItemExplicit = 0x2000077;
00089         const int opcodeGetItemCount = 0x2000078;
00090         const int opcodeGetItemCountExplicit = 0x2000079;
00091         const int opcodeRemoveItem = 0x200007a;
00092         const int opcodeRemoveItemExplicit = 0x200007b;
00093         const int opcodeEquip = 0x20001b3;
00094         const int opcodeEquipExplicit = 0x20001b4;
00095         const int opcodeGetArmorType = 0x20001d1;
00096         const int opcodeGetArmorTypeExplicit = 0x20001d2;
00097         const int opcodeHasItemEquipped = 0x20001d5;
00098         const int opcodeHasItemEquippedExplicit = 0x20001d6;
00099         const int opcodeHasSoulGem = 0x20001de;
00100         const int opcodeHasSoulGemExplicit = 0x20001df;
00101         const int opcodeGetWeaponType = 0x20001e0;
00102         const int opcodeGetWeaponTypeExplicit = 0x20001e1;
00103     }
00104 
00105     namespace Control
00106     {
00107         const int numberOfControls = 7;
00108 
00109         extern const char *controls[numberOfControls];
00110 
00111         const int opcodeEnable = 0x200007e;
00112         const int opcodeDisable = 0x2000085;
00113         const int opcodeToggleCollision = 0x2000130;
00114         const int opcodeClearForceRun = 0x2000154;
00115         const int opcodeClearForceRunExplicit = 0x2000155;
00116         const int opcodeForceRun = 0x2000156;
00117         const int opcodeForceRunExplicit = 0x2000157;
00118         const int opcodeClearForceSneak = 0x2000158;
00119         const int opcodeClearForceSneakExplicit = 0x2000159;
00120         const int opcodeForceSneak = 0x200015a;
00121         const int opcodeForceSneakExplicit = 0x200015b;
00122         const int opcodeGetDisabled = 0x2000175;
00123         const int opcodeGetPcRunning = 0x20001c9;
00124         const int opcodeGetPcSneaking = 0x20001ca;
00125         const int opcodeGetForceRun = 0x20001cb;
00126         const int opcodeGetForceSneak = 0x20001cc;
00127         const int opcodeGetForceRunExplicit = 0x20001cd;
00128         const int opcodeGetForceSneakExplicit = 0x20001ce;
00129     }
00130 
00131     namespace Dialogue
00132     {
00133         const int opcodeJournal = 0x2000133;
00134         const int opcodeSetJournalIndex = 0x2000134;
00135         const int opcodeGetJournalIndex = 0x2000135;
00136         const int opcodeAddTopic = 0x200013a;
00137         const int opcodeChoice = 0x2000a;
00138         const int opcodeForceGreeting = 0x200014f;
00139         const int opcodeForceGreetingExplicit = 0x2000150;
00140         const int opcodeGoodbye = 0x2000152;
00141         const int opcodeSetReputation = 0x20001ad;
00142         const int opcodeModReputation = 0x20001ae;
00143         const int opcodeSetReputationExplicit = 0x20001af;
00144         const int opcodeModReputationExplicit = 0x20001b0;
00145         const int opcodeGetReputation = 0x20001b1;
00146         const int opcodeGetReputationExplicit = 0x20001b2;
00147         const int opcodeSameFaction = 0x20001b5;
00148         const int opcodeSameFactionExplicit = 0x20001b6;
00149     }
00150 
00151     namespace Gui
00152     {
00153         const int opcodeEnableBirthMenu = 0x200000e;
00154         const int opcodeEnableClassMenu = 0x200000f;
00155         const int opcodeEnableNameMenu = 0x2000010;
00156         const int opcodeEnableRaceMenu = 0x2000011;
00157         const int opcodeEnableStatsReviewMenu = 0x2000012;
00158         const int opcodeEnableInventoryMenu = 0x2000013;
00159         const int opcodeEnableMagicMenu = 0x2000014;
00160         const int opcodeEnableMapMenu = 0x2000015;
00161         const int opcodeEnableStatsMenu = 0x2000016;
00162         const int opcodeEnableRest = 0x2000017;
00163         const int opcodeShowRestMenu = 0x2000018;
00164         const int opcodeGetButtonPressed = 0x2000137;
00165         const int opcodeToggleFogOfWar = 0x2000145;
00166         const int opcodeToggleFullHelp = 0x2000151;
00167         const int opcodeShowMap = 0x20001a0;
00168         const int opcodeFillMap = 0x20001a1;
00169     }
00170 
00171     namespace Misc
00172     {
00173         const int opcodeXBox = 0x200000c;
00174         const int opcodeOnActivate = 0x200000d;
00175         const int opcodeActivate = 0x2000075;
00176         const int opcodeLock = 0x20004;
00177         const int opcodeLockExplicit = 0x20005;
00178         const int opcodeUnlock = 0x200008c;
00179         const int opcodeUnlockExplicit = 0x200008d;
00180         const int opcodeToggleCollisionDebug = 0x2000132;
00181         const int opcodeToggleCollisionBoxes = 0x20001ac;
00182         const int opcodeToggleWireframe = 0x200013b;
00183         const int opcodeFadeIn = 0x200013c;
00184         const int opcodeFadeOut = 0x200013d;
00185         const int opcodeFadeTo = 0x200013e;
00186         const int opcodeToggleWater = 0x2000144;
00187         const int opcodeTogglePathgrid = 0x2000146;
00188         const int opcodeDontSaveObject = 0x2000153;
00189         const int opcodeToggleVanityMode = 0x2000174;
00190         const int opcodeGetPcSleep = 0x200019f;
00191         const int opcodeWakeUpPc = 0x20001a2;
00192         const int opcodeGetLocked = 0x20001c7;
00193         const int opcodeGetLockedExplicit = 0x20001c8;
00194         const int opcodeGetEffect = 0x20001cf;
00195         const int opcodeGetEffectExplicit = 0x20001d0;
00196         const int opcodeAddSoulGem = 0x20001f3;
00197         const int opcodeAddSoulGemExplicit = 0x20001f4;
00198         const int opcodeRemoveSoulGem = 0x20001f5;
00199         const int opcodeRemoveSoulGemExplicit = 0x20001f6;
00200         const int opcodeDrop = 0x20001f8;
00201         const int opcodeDropExplicit = 0x20001f9;
00202         const int opcodeDropSoulGem = 0x20001fa;
00203         const int opcodeDropSoulGemExplicit = 0x20001fb;
00204         const int opcodeGetAttacked = 0x20001d3;
00205         const int opcodeGetAttackedExplicit = 0x20001d4;
00206         const int opcodeGetWeaponDrawn = 0x20001d7;
00207         const int opcodeGetWeaponDrawnExplicit = 0x20001d8;
00208         const int opcodeGetSpellEffects = 0x20001db;
00209         const int opcodeGetSpellEffectsExplicit = 0x20001dc;
00210         const int opcodeGetCurrentTime = 0x20001dd;
00211         const int opcodeSetDelete = 0x20001e5;
00212         const int opcodeSetDeleteExplicit = 0x20001e6;
00213         const int opcodeGetSquareRoot = 0x20001e7;
00214         const int opcodeFall = 0x200020a;
00215         const int opcodeFallExplicit = 0x200020b;
00216         const int opcodeGetStandingPc = 0x200020c;
00217         const int opcodeGetStandingPcExplicit = 0x200020d;
00218         const int opcodeGetStandingActor = 0x200020e;
00219         const int opcodeGetStandingActorExplicit = 0x200020f;
00220         const int opcodeGetWindSpeed = 0x2000212;
00221         const int opcodePlayBink = 0x20001f7;
00222         const int opcodeHitOnMe = 0x2000213;
00223         const int opcodeHitOnMeExplicit = 0x2000214;
00224         const int opcodeDisableTeleporting = 0x2000215;
00225         const int opcodeEnableTeleporting = 0x2000216;
00226         const int opcodeShowVars = 0x200021d;
00227         const int opcodeShowVarsExplicit = 0x200021e;
00228         const int opcodeToggleGodMode = 0x200021f;
00229         const int opcodeDisableLevitation = 0x2000220;
00230         const int opcodeEnableLevitation = 0x2000221;
00231     }
00232 
00233     namespace Sky
00234     {
00235         const int opcodeToggleSky = 0x2000021;
00236         const int opcodeTurnMoonWhite = 0x2000022;
00237         const int opcodeTurnMoonRed = 0x2000023;
00238         const int opcodeGetMasserPhase = 0x2000024;
00239         const int opcodeGetSecundaPhase = 0x2000025;
00240         const int opcodeGetCurrentWeather = 0x200013f;
00241         const int opcodeChangeWeather = 0x2000140;
00242         const int opcodeModRegion = 0x20026;
00243     }
00244 
00245     namespace Sound
00246     {
00247         const int opcodeSay = 0x2000001;
00248         const int opcodeSayDone = 0x2000002;
00249         const int opcodeStreamMusic = 0x2000003;
00250         const int opcodePlaySound = 0x2000004;
00251         const int opcodePlaySoundVP = 0x2000005;
00252         const int opcodePlaySound3D = 0x2000006;
00253         const int opcodePlaySound3DVP = 0x2000007;
00254         const int opcodePlayLoopSound3D = 0x2000008;
00255         const int opcodePlayLoopSound3DVP = 0x2000009;
00256         const int opcodeStopSound = 0x200000a;
00257         const int opcodeGetSoundPlaying = 0x200000b;
00258 
00259         const int opcodeSayExplicit = 0x2000019;
00260         const int opcodeSayDoneExplicit = 0x200001a;
00261         const int opcodePlaySound3DExplicit = 0x200001b;
00262         const int opcodePlaySound3DVPExplicit = 0x200001c;
00263         const int opcodePlayLoopSound3DExplicit = 0x200001d;
00264         const int opcodePlayLoopSound3DVPExplicit = 0x200001e;
00265         const int opcodeStopSoundExplicit = 0x200001f;
00266         const int opcodeGetSoundPlayingExplicit = 0x2000020;
00267     }
00268 
00269     namespace Stats
00270     {
00271         const int numberOfAttributes = 8;
00272         const int numberOfDynamics = 3;
00273         const int numberOfSkills = 27;
00274 
00275         const int opcodeGetAttribute = 0x2000027;
00276         const int opcodeGetAttributeExplicit = 0x200002f;
00277         const int opcodeSetAttribute = 0x2000037;
00278         const int opcodeSetAttributeExplicit = 0x200003f;
00279         const int opcodeModAttribute = 0x2000047;
00280         const int opcodeModAttributeExplicit = 0x200004f;
00281 
00282         const int opcodeGetDynamic = 0x2000057;
00283         const int opcodeGetDynamicExplicit = 0x200005a;
00284         const int opcodeSetDynamic = 0x200005d;
00285         const int opcodeSetDynamicExplicit = 0x2000060;
00286         const int opcodeModDynamic = 0x2000063;
00287         const int opcodeModDynamicExplicit = 0x2000066;
00288         const int opcodeModCurrentDynamic = 0x2000069;
00289         const int opcodeModCurrentDynamicExplicit = 0x200006c;
00290         const int opcodeGetDynamicGetRatio = 0x200006f;
00291         const int opcodeGetDynamicGetRatioExplicit = 0x2000072;
00292 
00293         const int opcodeGetSkill = 0x200008e;
00294         const int opcodeGetSkillExplicit = 0x20000a9;
00295         const int opcodeSetSkill = 0x20000c4;
00296         const int opcodeSetSkillExplicit = 0x20000df;
00297         const int opcodeModSkill = 0x20000fa;
00298         const int opcodeModSkillExplicit = 0x2000115;
00299 
00300         const int opcodeGetPCCrimeLevel = 0x20001ec;
00301         const int opcodeSetPCCrimeLevel = 0x20001ed;
00302         const int opcodeModPCCrimeLevel = 0x20001ee;
00303 
00304         const int opcodeAddSpell = 0x2000147;
00305         const int opcodeAddSpellExplicit = 0x2000148;
00306         const int opcodeRemoveSpell = 0x2000149;
00307         const int opcodeRemoveSpellExplicit = 0x200014a;
00308         const int opcodeGetSpell = 0x200014b;
00309         const int opcodeGetSpellExplicit = 0x200014c;
00310 
00311         const int opcodePCRaiseRank = 0x2000b;
00312         const int opcodePCLowerRank = 0x2000c;
00313         const int opcodePCJoinFaction = 0x2000d;
00314         const int opcodeGetPCRank = 0x2000e;
00315         const int opcodeGetPCRankExplicit = 0x2000f;
00316         const int opcodeModDisposition = 0x200014d;
00317         const int opcodeModDispositionExplicit = 0x200014e;
00318         const int opcodeSetDisposition = 0x20001a4;
00319         const int opcodeSetDispositionExplicit = 0x20001a5;
00320         const int opcodeGetDisposition = 0x20001a6;
00321         const int opcodeGetDispositionExplicit = 0x20001a7;
00322 
00323         const int opcodeGetLevel = 0x200018c;
00324         const int opcodeGetLevelExplicit = 0x200018d;
00325         const int opcodeSetLevel = 0x200018e;
00326         const int opcodeSetLevelExplicit = 0x200018f;
00327 
00328         const int opcodeGetDeadCount = 0x20001a3;
00329 
00330         const int opcodeGetPCFacRep = 0x20012;
00331         const int opcodeGetPCFacRepExplicit = 0x20013;
00332         const int opcodeSetPCFacRep = 0x20014;
00333         const int opcodeSetPCFacRepExplicit = 0x20015;
00334         const int opcodeModPCFacRep = 0x20016;
00335         const int opcodeModPCFacRepExplicit = 0x20017;
00336 
00337         const int opcodeGetCommonDisease = 0x20001a8;
00338         const int opcodeGetCommonDiseaseExplicit = 0x20001a9;
00339         const int opcodeGetBlightDisease = 0x20001aa;
00340         const int opcodeGetBlightDiseaseExplicit = 0x20001ab;
00341 
00342         const int opcodeGetRace = 0x20001d9;
00343         const int opcodeGetRaceExplicit = 0x20001da;
00344 
00345         const int opcodePcExpelled = 0x20018;
00346         const int opcodePcExpelledExplicit = 0x20019;
00347         const int opcodePcExpell = 0x2001a;
00348         const int opcodePcExpellExplicit = 0x2001b;
00349         const int opcodePcClearExpelled = 0x2001c;
00350         const int opcodePcClearExpelledExplicit = 0x2001d;
00351         const int opcodeRaiseRank = 0x20001e8;
00352         const int opcodeRaiseRankExplicit = 0x20001e9;
00353         const int opcodeLowerRank = 0x20001ea;
00354         const int opcodeLowerRankExplicit = 0x20001eb;
00355         const int opcodeOnDeath = 0x20001fc;
00356         const int opcodeOnDeathExplicit = 0x2000205;
00357 
00358         const int opcodeBecomeWerewolf = 0x2000217;
00359         const int opcodeBecomeWerewolfExplicit = 0x2000218;
00360         const int opcodeUndoWerewolf = 0x2000219;
00361         const int opcodeUndoWerewolfExplicit = 0x200021a;
00362         const int opcodeSetWerewolfAcrobatics = 0x200021b;
00363         const int opcodeSetWerewolfAcrobaticsExplicit = 0x200021c;
00364         const int opcodeIsWerewolf = 0x20001fd;
00365         const int opcodeIsWerewolfExplicit = 0x20001fe;
00366 
00367         const int opcodeGetWerewolfKills = 0x20001e2;
00368     }
00369 
00370     namespace Transformation
00371     {
00372         const int opcodeSetScale = 0x2000164;
00373         const int opcodeSetScaleExplicit = 0x2000165;
00374         const int opcodeSetAngle = 0x2000166;
00375         const int opcodeSetAngleExplicit = 0x2000167;
00376         const int opcodeGetScale = 0x2000168;
00377         const int opcodeGetScaleExplicit = 0x2000169;
00378         const int opcodeGetAngle = 0x200016a;
00379         const int opcodeGetAngleExplicit = 0x200016b;
00380         const int opcodeGetPos = 0x2000190;
00381         const int opcodeGetPosExplicit = 0x2000191;
00382         const int opcodeSetPos = 0x2000192;
00383         const int opcodeSetPosExplicit = 0x2000193;
00384         const int opcodeGetStartingPos = 0x2000194;
00385         const int opcodeGetStartingPosExplicit = 0x2000195;
00386         const int opcodeGetStartingAngle = 0x2000210;
00387         const int opcodeGetStartingAngleExplicit = 0x2000211;
00388         const int opcodePosition = 0x2000196;
00389         const int opcodePositionExplicit = 0x2000197;
00390         const int opcodePositionCell = 0x2000198;
00391         const int opcodePositionCellExplicit = 0x2000199;
00392 
00393         const int opcodePlaceItemCell = 0x200019a;
00394         const int opcodePlaceItem = 0x200019b;
00395         const int opcodePlaceAtPc = 0x200019c;  
00396         const int opcodePlaceAtMe = 0x200019d;
00397         const int opcodePlaceAtMeExplicit = 0x200019e;
00398         const int opcodeModScale = 0x20001e3;
00399         const int opcodeModScaleExplicit = 0x20001e4;
00400         const int opcodeRotate = 0x20001ff;
00401         const int opcodeRotateExplicit = 0x2000200;
00402         const int opcodeRotateWorld = 0x2000201;
00403         const int opcodeRotateWorldExplicit = 0x2000202;
00404         const int opcodeSetAtStart = 0x2000203;
00405         const int opcodeSetAtStartExplicit = 0x2000204;
00406         const int opcodeMove = 0x2000206;
00407         const int opcodeMoveExplicit = 0x2000207;
00408         const int opcodeMoveWorld = 0x2000208;
00409         const int opcodeMoveWorldExplicit = 0x2000209;
00410     }
00411 
00412     namespace User
00413     {
00414         const int opcodeUser1 = 0x200016c;
00415         const int opcodeUser2 = 0x200016d;
00416         const int opcodeUser3 = 0x200016e;
00417         const int opcodeUser3Explicit = 0x200016f;
00418         const int opcodeUser4 = 0x2000170;
00419         const int opcodeUser4Explicit = 0x2000171;
00420     }
00421 }
00422 
00423 #endif