diff options
Diffstat (limited to 'engines/kyra/kyra.h')
-rw-r--r-- | engines/kyra/kyra.h | 319 |
1 files changed, 160 insertions, 159 deletions
diff --git a/engines/kyra/kyra.h b/engines/kyra/kyra.h index d015c5e708..70182400eb 100644 --- a/engines/kyra/kyra.h +++ b/engines/kyra/kyra.h @@ -70,7 +70,7 @@ enum { // TODO: this is just the start of makeing the debug output of the kyra engine a bit more useable // in the future we maybe merge some flags and/or create new ones enum kDebugLevels { - kDebugLevelScriptFuncs = 1 << 0, // prints debug output of cmd_* functions + kDebugLevelScriptFuncs = 1 << 0, // prints debug output of c1_* functions kDebugLevelScript = 1 << 1, // prints debug output of "ScriptHelper" functions kDebugLevelSprites = 1 << 2, // prints debug output of "Sprites" functions kDebugLevelScreen = 1 << 3, // prints debug output of "Screen" functions @@ -330,164 +330,165 @@ public: int mouseX() { return _mouseX; } int mouseY() { return _mouseY; } - // all opcode procs (maybe that is somehow useless atm) - int cmd_magicInMouseItem(ScriptState *script); - int cmd_characterSays(ScriptState *script); - int cmd_pauseTicks(ScriptState *script); - int cmd_drawSceneAnimShape(ScriptState *script); - int cmd_queryGameFlag(ScriptState *script); - int cmd_setGameFlag(ScriptState *script); - int cmd_resetGameFlag(ScriptState *script); - int cmd_runNPCScript(ScriptState *script); - int cmd_setSpecialExitList(ScriptState *script); - int cmd_blockInWalkableRegion(ScriptState *script); - int cmd_blockOutWalkableRegion(ScriptState *script); - int cmd_walkPlayerToPoint(ScriptState *script); - int cmd_dropItemInScene(ScriptState *script); - int cmd_drawAnimShapeIntoScene(ScriptState *script); - int cmd_createMouseItem(ScriptState *script); - int cmd_savePageToDisk(ScriptState *script); - int cmd_sceneAnimOn(ScriptState *script); - int cmd_sceneAnimOff(ScriptState *script); - int cmd_getElapsedSeconds(ScriptState *script); - int cmd_mouseIsPointer(ScriptState *script); - int cmd_destroyMouseItem(ScriptState *script); - int cmd_runSceneAnimUntilDone(ScriptState *script); - int cmd_fadeSpecialPalette(ScriptState *script); - int cmd_playAdlibSound(ScriptState *script); - int cmd_playAdlibScore(ScriptState *script); - int cmd_phaseInSameScene(ScriptState *script); - int cmd_setScenePhasingFlag(ScriptState *script); - int cmd_resetScenePhasingFlag(ScriptState *script); - int cmd_queryScenePhasingFlag(ScriptState *script); - int cmd_sceneToDirection(ScriptState *script); - int cmd_setBirthstoneGem(ScriptState *script); - int cmd_placeItemInGenericMapScene(ScriptState *script); - int cmd_setBrandonStatusBit(ScriptState *script); - int cmd_pauseSeconds(ScriptState *script); - int cmd_getCharactersLocation(ScriptState *script); - int cmd_runNPCSubscript(ScriptState *script); - int cmd_magicOutMouseItem(ScriptState *script); - int cmd_internalAnimOn(ScriptState *script); - int cmd_forceBrandonToNormal(ScriptState *script); - int cmd_poisonDeathNow(ScriptState *script); - int cmd_setScaleMode(ScriptState *script); - int cmd_openWSAFile(ScriptState *script); - int cmd_closeWSAFile(ScriptState *script); - int cmd_runWSAFromBeginningToEnd(ScriptState *script); - int cmd_displayWSAFrame(ScriptState *script); - int cmd_enterNewScene(ScriptState *script); - int cmd_setSpecialEnterXAndY(ScriptState *script); - int cmd_runWSAFrames(ScriptState *script); - int cmd_popBrandonIntoScene(ScriptState *script); - int cmd_restoreAllObjectBackgrounds(ScriptState *script); - int cmd_setCustomPaletteRange(ScriptState *script); - int cmd_loadPageFromDisk(ScriptState *script); - int cmd_customPrintTalkString(ScriptState *script); - int cmd_restoreCustomPrintBackground(ScriptState *script); - int cmd_hideMouse(ScriptState *script); - int cmd_showMouse(ScriptState *script); - int cmd_getCharacterX(ScriptState *script); - int cmd_getCharacterY(ScriptState *script); - int cmd_changeCharactersFacing(ScriptState *script); - int cmd_copyWSARegion(ScriptState *script); - int cmd_printText(ScriptState *script); - int cmd_random(ScriptState *script); - int cmd_loadSoundFile(ScriptState *script); - int cmd_displayWSAFrameOnHidPage(ScriptState *script); - int cmd_displayWSASequentialFrames(ScriptState *script); - int cmd_drawCharacterStanding(ScriptState *script); - int cmd_internalAnimOff(ScriptState *script); - int cmd_changeCharactersXAndY(ScriptState *script); - int cmd_clearSceneAnimatorBeacon(ScriptState *script); - int cmd_querySceneAnimatorBeacon(ScriptState *script); - int cmd_refreshSceneAnimator(ScriptState *script); - int cmd_placeItemInOffScene(ScriptState *script); - int cmd_wipeDownMouseItem(ScriptState *script); - int cmd_placeCharacterInOtherScene(ScriptState *script); - int cmd_getKey(ScriptState *script); - int cmd_specificItemInInventory(ScriptState *script); - int cmd_popMobileNPCIntoScene(ScriptState *script); - int cmd_mobileCharacterInScene(ScriptState *script); - int cmd_hideMobileCharacter(ScriptState *script); - int cmd_unhideMobileCharacter(ScriptState *script); - int cmd_setCharactersLocation(ScriptState *script); - int cmd_walkCharacterToPoint(ScriptState *script); - int cmd_specialEventDisplayBrynnsNote(ScriptState *script); - int cmd_specialEventRemoveBrynnsNote(ScriptState *script); - int cmd_setLogicPage(ScriptState *script); - int cmd_fatPrint(ScriptState *script); - int cmd_preserveAllObjectBackgrounds(ScriptState *script); - int cmd_updateSceneAnimations(ScriptState *script); - int cmd_sceneAnimationActive(ScriptState *script); - int cmd_setCharactersMovementDelay(ScriptState *script); - int cmd_getCharactersFacing(ScriptState *script); - int cmd_bkgdScrollSceneAndMasksRight(ScriptState *script); - int cmd_dispelMagicAnimation(ScriptState *script); - int cmd_findBrightestFireberry(ScriptState *script); - int cmd_setFireberryGlowPalette(ScriptState *script); - int cmd_setDeathHandlerFlag(ScriptState *script); - int cmd_drinkPotionAnimation(ScriptState *script); - int cmd_makeAmuletAppear(ScriptState *script); - int cmd_drawItemShapeIntoScene(ScriptState *script); - int cmd_setCharactersCurrentFrame(ScriptState *script); - int cmd_waitForConfirmationMouseClick(ScriptState *script); - int cmd_pageFlip(ScriptState *script); - int cmd_setSceneFile(ScriptState *script); - int cmd_getItemInMarbleVase(ScriptState *script); - int cmd_setItemInMarbleVase(ScriptState *script); - int cmd_addItemToInventory(ScriptState *script); - int cmd_intPrint(ScriptState *script); - int cmd_shakeScreen(ScriptState *script); - int cmd_createAmuletJewel(ScriptState *script); - int cmd_setSceneAnimCurrXY(ScriptState *script); - int cmd_poisonBrandonAndRemaps(ScriptState *script); - int cmd_fillFlaskWithWater(ScriptState *script); - int cmd_getCharactersMovementDelay(ScriptState *script); - int cmd_getBirthstoneGem(ScriptState *script); - int cmd_queryBrandonStatusBit(ScriptState *script); - int cmd_playFluteAnimation(ScriptState *script); - int cmd_playWinterScrollSequence(ScriptState *script); - int cmd_getIdolGem(ScriptState *script); - int cmd_setIdolGem(ScriptState *script); - int cmd_totalItemsInScene(ScriptState *script); - int cmd_restoreBrandonsMovementDelay(ScriptState *script); - int cmd_setMousePos(ScriptState *script); - int cmd_getMouseState(ScriptState *script); - int cmd_setEntranceMouseCursorTrack(ScriptState *script); - int cmd_itemAppearsOnGround(ScriptState *script); - int cmd_setNoDrawShapesFlag(ScriptState *script); - int cmd_fadeEntirePalette(ScriptState *script); - int cmd_itemOnGroundHere(ScriptState *script); - int cmd_queryCauldronState(ScriptState *script); - int cmd_setCauldronState(ScriptState *script); - int cmd_queryCrystalState(ScriptState *script); - int cmd_setCrystalState(ScriptState *script); - int cmd_setPaletteRange(ScriptState *script); - int cmd_shrinkBrandonDown(ScriptState *script); - int cmd_growBrandonUp(ScriptState *script); - int cmd_setBrandonScaleXAndY(ScriptState *script); - int cmd_resetScaleMode(ScriptState *script); - int cmd_getScaleDepthTableValue(ScriptState *script); - int cmd_setScaleDepthTableValue(ScriptState *script); - int cmd_message(ScriptState *script); - int cmd_checkClickOnNPC(ScriptState *script); - int cmd_getFoyerItem(ScriptState *script); - int cmd_setFoyerItem(ScriptState *script); - int cmd_setNoItemDropRegion(ScriptState *script); - int cmd_walkMalcolmOn(ScriptState *script); - int cmd_passiveProtection(ScriptState *script); - int cmd_setPlayingLoop(ScriptState *script); - int cmd_brandonToStoneSequence(ScriptState *script); - int cmd_brandonHealingSequence(ScriptState *script); - int cmd_protectCommandLine(ScriptState *script); - int cmd_pauseMusicSeconds(ScriptState *script); - int cmd_resetMaskRegion(ScriptState *script); - int cmd_setPaletteChangeFlag(ScriptState *script); - int cmd_fillRect(ScriptState *script); - int cmd_dummy(ScriptState *script); - int cmd_vocUnload(ScriptState *script); - int cmd_vocLoad(ScriptState *script); + virtual int runOpcode(ScriptState *script, uint8 opcode); +protected: + int c1_magicInMouseItem(ScriptState *script); + int c1_characterSays(ScriptState *script); + int c1_pauseTicks(ScriptState *script); + int c1_drawSceneAnimShape(ScriptState *script); + int c1_queryGameFlag(ScriptState *script); + int c1_setGameFlag(ScriptState *script); + int c1_resetGameFlag(ScriptState *script); + int c1_runNPCScript(ScriptState *script); + int c1_setSpecialExitList(ScriptState *script); + int c1_blockInWalkableRegion(ScriptState *script); + int c1_blockOutWalkableRegion(ScriptState *script); + int c1_walkPlayerToPoint(ScriptState *script); + int c1_dropItemInScene(ScriptState *script); + int c1_drawAnimShapeIntoScene(ScriptState *script); + int c1_createMouseItem(ScriptState *script); + int c1_savePageToDisk(ScriptState *script); + int c1_sceneAnimOn(ScriptState *script); + int c1_sceneAnimOff(ScriptState *script); + int c1_getElapsedSeconds(ScriptState *script); + int c1_mouseIsPointer(ScriptState *script); + int c1_destroyMouseItem(ScriptState *script); + int c1_runSceneAnimUntilDone(ScriptState *script); + int c1_fadeSpecialPalette(ScriptState *script); + int c1_playAdlibSound(ScriptState *script); + int c1_playAdlibScore(ScriptState *script); + int c1_phaseInSameScene(ScriptState *script); + int c1_setScenePhasingFlag(ScriptState *script); + int c1_resetScenePhasingFlag(ScriptState *script); + int c1_queryScenePhasingFlag(ScriptState *script); + int c1_sceneToDirection(ScriptState *script); + int c1_setBirthstoneGem(ScriptState *script); + int c1_placeItemInGenericMapScene(ScriptState *script); + int c1_setBrandonStatusBit(ScriptState *script); + int c1_pauseSeconds(ScriptState *script); + int c1_getCharactersLocation(ScriptState *script); + int c1_runNPCSubscript(ScriptState *script); + int c1_magicOutMouseItem(ScriptState *script); + int c1_internalAnimOn(ScriptState *script); + int c1_forceBrandonToNormal(ScriptState *script); + int c1_poisonDeathNow(ScriptState *script); + int c1_setScaleMode(ScriptState *script); + int c1_openWSAFile(ScriptState *script); + int c1_closeWSAFile(ScriptState *script); + int c1_runWSAFromBeginningToEnd(ScriptState *script); + int c1_displayWSAFrame(ScriptState *script); + int c1_enterNewScene(ScriptState *script); + int c1_setSpecialEnterXAndY(ScriptState *script); + int c1_runWSAFrames(ScriptState *script); + int c1_popBrandonIntoScene(ScriptState *script); + int c1_restoreAllObjectBackgrounds(ScriptState *script); + int c1_setCustomPaletteRange(ScriptState *script); + int c1_loadPageFromDisk(ScriptState *script); + int c1_customPrintTalkString(ScriptState *script); + int c1_restoreCustomPrintBackground(ScriptState *script); + int c1_hideMouse(ScriptState *script); + int c1_showMouse(ScriptState *script); + int c1_getCharacterX(ScriptState *script); + int c1_getCharacterY(ScriptState *script); + int c1_changeCharactersFacing(ScriptState *script); + int c1_copyWSARegion(ScriptState *script); + int c1_printText(ScriptState *script); + int c1_random(ScriptState *script); + int c1_loadSoundFile(ScriptState *script); + int c1_displayWSAFrameOnHidPage(ScriptState *script); + int c1_displayWSASequentialFrames(ScriptState *script); + int c1_drawCharacterStanding(ScriptState *script); + int c1_internalAnimOff(ScriptState *script); + int c1_changeCharactersXAndY(ScriptState *script); + int c1_clearSceneAnimatorBeacon(ScriptState *script); + int c1_querySceneAnimatorBeacon(ScriptState *script); + int c1_refreshSceneAnimator(ScriptState *script); + int c1_placeItemInOffScene(ScriptState *script); + int c1_wipeDownMouseItem(ScriptState *script); + int c1_placeCharacterInOtherScene(ScriptState *script); + int c1_getKey(ScriptState *script); + int c1_specificItemInInventory(ScriptState *script); + int c1_popMobileNPCIntoScene(ScriptState *script); + int c1_mobileCharacterInScene(ScriptState *script); + int c1_hideMobileCharacter(ScriptState *script); + int c1_unhideMobileCharacter(ScriptState *script); + int c1_setCharactersLocation(ScriptState *script); + int c1_walkCharacterToPoint(ScriptState *script); + int c1_specialEventDisplayBrynnsNote(ScriptState *script); + int c1_specialEventRemoveBrynnsNote(ScriptState *script); + int c1_setLogicPage(ScriptState *script); + int c1_fatPrint(ScriptState *script); + int c1_preserveAllObjectBackgrounds(ScriptState *script); + int c1_updateSceneAnimations(ScriptState *script); + int c1_sceneAnimationActive(ScriptState *script); + int c1_setCharactersMovementDelay(ScriptState *script); + int c1_getCharactersFacing(ScriptState *script); + int c1_bkgdScrollSceneAndMasksRight(ScriptState *script); + int c1_dispelMagicAnimation(ScriptState *script); + int c1_findBrightestFireberry(ScriptState *script); + int c1_setFireberryGlowPalette(ScriptState *script); + int c1_setDeathHandlerFlag(ScriptState *script); + int c1_drinkPotionAnimation(ScriptState *script); + int c1_makeAmuletAppear(ScriptState *script); + int c1_drawItemShapeIntoScene(ScriptState *script); + int c1_setCharactersCurrentFrame(ScriptState *script); + int c1_waitForConfirmationMouseClick(ScriptState *script); + int c1_pageFlip(ScriptState *script); + int c1_setSceneFile(ScriptState *script); + int c1_getItemInMarbleVase(ScriptState *script); + int c1_setItemInMarbleVase(ScriptState *script); + int c1_addItemToInventory(ScriptState *script); + int c1_intPrint(ScriptState *script); + int c1_shakeScreen(ScriptState *script); + int c1_createAmuletJewel(ScriptState *script); + int c1_setSceneAnimCurrXY(ScriptState *script); + int c1_poisonBrandonAndRemaps(ScriptState *script); + int c1_fillFlaskWithWater(ScriptState *script); + int c1_getCharactersMovementDelay(ScriptState *script); + int c1_getBirthstoneGem(ScriptState *script); + int c1_queryBrandonStatusBit(ScriptState *script); + int c1_playFluteAnimation(ScriptState *script); + int c1_playWinterScrollSequence(ScriptState *script); + int c1_getIdolGem(ScriptState *script); + int c1_setIdolGem(ScriptState *script); + int c1_totalItemsInScene(ScriptState *script); + int c1_restoreBrandonsMovementDelay(ScriptState *script); + int c1_setMousePos(ScriptState *script); + int c1_getMouseState(ScriptState *script); + int c1_setEntranceMouseCursorTrack(ScriptState *script); + int c1_itemAppearsOnGround(ScriptState *script); + int c1_setNoDrawShapesFlag(ScriptState *script); + int c1_fadeEntirePalette(ScriptState *script); + int c1_itemOnGroundHere(ScriptState *script); + int c1_queryCauldronState(ScriptState *script); + int c1_setCauldronState(ScriptState *script); + int c1_queryCrystalState(ScriptState *script); + int c1_setCrystalState(ScriptState *script); + int c1_setPaletteRange(ScriptState *script); + int c1_shrinkBrandonDown(ScriptState *script); + int c1_growBrandonUp(ScriptState *script); + int c1_setBrandonScaleXAndY(ScriptState *script); + int c1_resetScaleMode(ScriptState *script); + int c1_getScaleDepthTableValue(ScriptState *script); + int c1_setScaleDepthTableValue(ScriptState *script); + int c1_message(ScriptState *script); + int c1_checkClickOnNPC(ScriptState *script); + int c1_getFoyerItem(ScriptState *script); + int c1_setFoyerItem(ScriptState *script); + int c1_setNoItemDropRegion(ScriptState *script); + int c1_walkMalcolmOn(ScriptState *script); + int c1_passiveProtection(ScriptState *script); + int c1_setPlayingLoop(ScriptState *script); + int c1_brandonToStoneSequence(ScriptState *script); + int c1_brandonHealingSequence(ScriptState *script); + int c1_protectCommandLine(ScriptState *script); + int c1_pauseMusicSeconds(ScriptState *script); + int c1_resetMaskRegion(ScriptState *script); + int c1_setPaletteChangeFlag(ScriptState *script); + int c1_fillRect(ScriptState *script); + int c1_dummy(ScriptState *script); + int c1_vocUnload(ScriptState *script); + int c1_vocLoad(ScriptState *script); protected: |