ScummVM API documentation
Kyra::KyraEngine_LoK Class Reference
Inheritance diagram for Kyra::KyraEngine_LoK:
Kyra::KyraEngine_v1 Engine

Classes

struct  KyragemState
 

Public Types

typedef bool(KyraEngine_LoK::* IntroProc) ()
 
- Public Types inherited from Kyra::KyraEngine_v1
enum  kVolumeEntry { kVolumeMusic = 0, kVolumeSfx = 1, kVolumeSpeech = 2 }
 
- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime,
  kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride
}
 

Public Member Functions

 KyraEngine_LoK (OSystem *system, const GameFlags &flags)
 
Screenscreen () override
 
Animator_LoKanimator ()
 
GUIgui () const override
 
virtual MoviecreateWSAMovie ()
 
uint8 ** shapes ()
 
CharactercurrentCharacter ()
 
CharactercharacterList ()
 
uint16 brandonStatus ()
 
uint16 getScene ()
 
const char *const * seqWSATable ()
 
const char *const * seqCPSTable ()
 
const char *const * seqCOLTable ()
 
const char *const * seqTextsTable ()
 
const uint8 *const * palTable1 ()
 
const uint8 *const * palTable2 ()
 
bool seq_skipSequence () const
 
void delayUntil (uint32 timestamp, bool updateGameTimers=false, bool update=false, bool isMainLoop=false) override
 
void delay (uint32 millis, bool update=false, bool isMainLoop=false) override
 
void delayWithTicks (int ticks) override
 
bool skipFlag () const override
 
void resetSkipFlag (bool removeEvent=true) override
 
void registerDefaultSettings () override
 
void readSettings () override
 
void writeSettings () override
 
void snd_playSoundEffect (int track, int volume=0xFF) override
 
void snd_playWanderScoreViaMap (int command, int restart) override
 
void snd_playVoiceFile (int id) override
 
void snd_voiceWaitForFinish (bool ingame=true)
 
uint32 snd_getVoicePlayTime ()
 
void drawSentenceCommand (const char *sentence, int unk1)
 
void updateSentenceCommand (const char *str1, const char *str2, int unk1)
 
void updateTextFade ()
 
- Public Member Functions inherited from Kyra::KyraEngine_v1
 KyraEngine_v1 (OSystem *system, const GameFlags &flags)
 
uint8 game () const
 
const GameFlagsgameFlags () const
 
Resourceresource ()
 
virtual TextDisplayertext ()
 
Soundsound ()
 
StaticResourcestaticres ()
 
TimerManagertimer ()
 
uint32 tickLength () const
 
void setMousePos (int x, int y)
 
Common::Point getMousePos ()
 
bool speechEnabled ()
 
bool textEnabled ()
 
void setVolume (kVolumeEntry vol, uint8 value)
 
uint8 getVolume (kVolumeEntry vol)
 
void syncSoundSettings () override
 
int setGameFlag (int flag)
 
int queryGameFlag (int flag) const
 
int resetGameFlag (int flag)
 
virtual void snd_playTheme (int file, int track)
 
virtual bool snd_voiceIsPlaying ()
 
virtual void snd_stopVoice ()
 
- Public Member Functions inherited from Engine
MetaEnginegetMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
bool existExtractedCDAudioFiles (uint track=1)
 
bool isDataAndCDAudioReadFromSameCD ()
 
void warnMissingExtractedCDAudio ()
 
void handleAutoSave ()
 
void saveAutosaveIfEnabled ()
 
virtual bool canSaveAutosaveCurrently ()
 
 Engine (OSystem *syst)
 
virtual ~Engine ()
 
virtual void initializePath (const Common::FSNode &gamePath)
 
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 
virtual GUI::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
bool enhancementEnabled (int32 cls)
 
virtual void applyGameSettings ()
 
virtual void flipMute ()
 
virtual Common::String getSaveStateName (int slot) const
 
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 
void setGameToLoadSlot (int slot)
 
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 
bool saveGameDialog ()
 
bool loadGameDialog ()
 

Public Attributes

int _paletteChanged
 
int16 _northExitHeight
 
- Public Attributes inherited from Kyra::KyraEngine_v1
Common::RandomSource _rnd
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Protected Member Functions

Common::Error go () override
 
Common::Error init () override
 
void seq_demo ()
 
void seq_intro ()
 
bool seq_introPublisherLogos ()
 
bool seq_introLogos ()
 
bool seq_introStory ()
 
bool seq_introMalcolmTree ()
 
bool seq_introKallakWriting ()
 
bool seq_introKallakMalcolm ()
 
void seq_createAmuletJewel (int jewel, int page, int noSound, int drawOnly)
 
void seq_brandonHealing ()
 
void seq_brandonHealing2 ()
 
void seq_poisonDeathNow (int now)
 
void seq_poisonDeathNowAnim ()
 
void seq_playFluteAnimation ()
 
void seq_winterScroll1 ()
 
void seq_winterScroll2 ()
 
void seq_makeBrandonInv ()
 
void seq_makeBrandonNormal ()
 
void seq_makeBrandonNormal2 ()
 
void seq_makeBrandonWisp ()
 
void seq_dispelMagicAnimation ()
 
void seq_fillFlaskWithWater (int item, int type)
 
void seq_playDrinkPotionAnim (int item, int makeFlaskEmpty, int flags)
 
void seq_brandonToStone ()
 
int seq_playEnd ()
 
void seq_playEnding ()
 
int handleMalcolmFlag ()
 
int handleBeadState ()
 
void initBeadState (int x, int y, int x2, int y2, int unk1, BeadState *ptr)
 
int processBead (int x, int y, int &x2, int &y2, BeadState *ptr)
 
void seq_playCredits ()
 
void seq_playCreditsAmiga ()
 
Common::Error saveGameStateIntern (int slot, const char *saveName, const Graphics::Surface *thumbnail) override
 
Common::Error loadGameState (int slot) override
 
void processInput (int xpos, int ypos)
 
int processInputHelper (int xpos, int ypos)
 
int clickEventHandler (int xpos, int ypos)
 
void clickEventHandler2 ()
 
void updateMousePointer (bool forceUpdate=false)
 
bool hasClickedOnExit (int xpos, int ypos)
 
void loadSceneMsc ()
 
void startSceneScript (int brandonAlive)
 
void setupSceneItems ()
 
void initSceneData (int facing, int unk1, int brandonAlive)
 
void initSceneObjectList (int brandonAlive)
 
void initSceneScreen (int brandonAlive)
 
void setupSceneResource (int sceneId)
 
void enterNewScene (int sceneId, int facing, int unk1, int unk2, int brandonAlive)
 
int handleSceneChange (int xpos, int ypos, int unk1, int frameReset)
 
int processSceneChange (int *table, int unk1, int frameReset)
 
int changeScene (int facing)
 
void transcendScenes (int roomIndex, int roomName)
 
void setSceneFile (int roomIndex, int roomName)
 
int findWay (int x, int y, int toX, int toY, int *moveTable, int moveTableSize) override
 
bool lineIsPassable (int x, int y) override
 
void addItemToRoom (uint16 sceneId, uint8 item, int itemIndex, int x, int y)
 
void itemDropDown (int x, int y, int destX, int destY, byte freeItem, int item)
 
int processItemDrop (uint16 sceneId, uint8 item, int x, int y, int unk1, int unk2)
 
void dropItem (int unk1, int item, int x, int y, int unk2)
 
int countItemsInScene (uint16 sceneId)
 
void exchangeItemWithMouseItem (uint16 sceneId, int itemIndex)
 
byte findFreeItemInScene (int scene)
 
byte findItemAtPos (int x, int y)
 
void addToNoDropRects (int x, int y, int w, int h)
 
void clearNoDropRects ()
 
int isDropable (int x, int y)
 
int checkNoDropRects (int x, int y)
 
void updatePlayerItemsForScene ()
 
void backUpItemRect0 (int xpos, int ypos)
 
void restoreItemRect0 (int xpos, int ypos)
 
void backUpItemRect1 (int xpos, int ypos)
 
void restoreItemRect1 (int xpos, int ypos)
 
void placeItemInGenericMapScene (int item, int index)
 
void setHandItem (Item item) override
 
void removeHandItem () override
 
void setMouseItem (Item item)
 
int getItemListIndex (Item item)
 
void wipeDownMouseItem (int xpos, int ypos)
 
void itemSpecialFX (int x, int y, int item)
 
void itemSpecialFX1 (int x, int y, int item)
 
void itemSpecialFX2 (int x, int y, int item)
 
void magicOutMouseItem (int animIndex, int itemPos)
 
void magicInMouseItem (int animIndex, int item, int itemPos)
 
void specialMouseItemFX (int shape, int x, int y, int animIndex, int tableIndex, int loopStart, int maxLoops)
 
void processSpecialMouseItemFX (int shape, int x, int y, int tableValue, int loopStart, int maxLoops)
 
void moveCharacterToPos (int character, int facing, int xpos, int ypos)
 
void setCharacterPositionWithUpdate (int character)
 
int setCharacterPosition (int character, int *facingTable)
 
void setCharacterPositionHelper (int character, int *facingTable)
 
void setCharactersPositions (int character)
 
void setBrandonPoisonFlags (int reset)
 
void resetBrandonPoisonFlags ()
 
void characterSays (int vocFile, const char *chatStr, int16 charNum, int16 chatDuration)
 
void waitForChatToFinish (int vocFile, int chatDuration, const char *str, uint8 charNum, const bool printText)
 
int initCharacterChat (int8 charNum)
 
void backupChatPartnerAnimFrame (int8 charNum)
 
void restoreChatPartnerAnimFrame (int8 charNum)
 
int8 getChatPartnerNum ()
 
void endCharacterChat (int8 charNum, int16 arg_4)
 
int findDuplicateItemShape (int shape)
 
void updateKyragemFading ()
 
void loadMainScreen (int page=3)
 
void redrawInventory (int page)
 
void drawJewelPress (int jewel, int drawSpecial)
 
void drawJewelsFadeOutStart ()
 
void drawJewelsFadeOutEnd (int jewel)
 
void setupShapes123 (const Shape *shapeTable, int endShape, int flags)
 
void freeShapes123 ()
 
void startup ()
 
void mainLoop ()
 
int checkForNPCScriptRun (int xpos, int ypos)
 
void runNpcScript (int func)
 
void loadMouseShapes ()
 
void loadCharacterShapes ()
 
void loadSpecialEffectShapes ()
 
void loadItems ()
 
void loadButtonShapes ()
 
void initMainButtonList ()
 
void setCharactersInDefaultScene ()
 
void setupPanPages ()
 
void freePanPages ()
 
void closeFinalWsa ()
 
void setupTimers () override
 
void timerUpdateHeadAnims (int timerNum)
 
void timerTulipCreator (int timerNum)
 
void timerRubyCreator (int timerNum)
 
void timerAsInvisibleTimeout (int timerNum)
 
void timerAsWillowispTimeout (int timerNum)
 
void checkAmuletAnimFlags ()
 
void timerRedrawAmulet (int timerNum)
 
void timerLavenderRoseCreator (int timerNum)
 
void timerAcornCreator (int timerNum)
 
void timerBlueberryCreator (int timerNum)
 
void timerFadeText (int timerNum)
 
void timerWillowispFrameTimer (int timerNum)
 
void timerInvisibleFrameTimer (int timerNum)
 
void drawAmulet ()
 
void setTextFadeTimerCountdown (int16 countdown)
 
void setWalkspeed (uint8 newSpeed) override
 
void setItemCreationFlags (int offset, int count)
 
int buttonInventoryCallback (Button *caller)
 
int buttonAmuletCallback (Button *caller)
 
void initStaticResource ()
 
void setupButtonData ()
 
void setupZanthiaPalette (int pal)
 
void setupOpcodeTable () override
 
int o1_magicInMouseItem (EMCState *script)
 
int o1_characterSays (EMCState *script)
 
int o1_delay (EMCState *script)
 
int o1_drawSceneAnimShape (EMCState *script)
 
int o1_runNPCScript (EMCState *script)
 
int o1_setSpecialExitList (EMCState *script)
 
int o1_walkPlayerToPoint (EMCState *script)
 
int o1_dropItemInScene (EMCState *script)
 
int o1_drawAnimShapeIntoScene (EMCState *script)
 
int o1_savePageToDisk (EMCState *script)
 
int o1_sceneAnimOn (EMCState *script)
 
int o1_sceneAnimOff (EMCState *script)
 
int o1_getElapsedSeconds (EMCState *script)
 
int o1_mouseIsPointer (EMCState *script)
 
int o1_runSceneAnimUntilDone (EMCState *script)
 
int o1_fadeSpecialPalette (EMCState *script)
 
int o1_phaseInSameScene (EMCState *script)
 
int o1_setScenePhasingFlag (EMCState *script)
 
int o1_resetScenePhasingFlag (EMCState *script)
 
int o1_queryScenePhasingFlag (EMCState *script)
 
int o1_sceneToDirection (EMCState *script)
 
int o1_setBirthstoneGem (EMCState *script)
 
int o1_placeItemInGenericMapScene (EMCState *script)
 
int o1_setBrandonStatusBit (EMCState *script)
 
int o1_delaySecs (EMCState *script)
 
int o1_getCharacterScene (EMCState *script)
 
int o1_runNPCSubscript (EMCState *script)
 
int o1_magicOutMouseItem (EMCState *script)
 
int o1_internalAnimOn (EMCState *script)
 
int o1_forceBrandonToNormal (EMCState *script)
 
int o1_poisonDeathNow (EMCState *script)
 
int o1_setScaleMode (EMCState *script)
 
int o1_openWSAFile (EMCState *script)
 
int o1_closeWSAFile (EMCState *script)
 
int o1_runWSAFromBeginningToEnd (EMCState *script)
 
int o1_displayWSAFrame (EMCState *script)
 
int o1_enterNewScene (EMCState *script)
 
int o1_setSpecialEnterXAndY (EMCState *script)
 
int o1_runWSAFrames (EMCState *script)
 
int o1_popBrandonIntoScene (EMCState *script)
 
int o1_restoreAllObjectBackgrounds (EMCState *script)
 
int o1_setCustomPaletteRange (EMCState *script)
 
int o1_loadPageFromDisk (EMCState *script)
 
int o1_customPrintTalkString (EMCState *script)
 
int o1_restoreCustomPrintBackground (EMCState *script)
 
int o1_getCharacterX (EMCState *script)
 
int o1_getCharacterY (EMCState *script)
 
int o1_setCharacterFacing (EMCState *script)
 
int o1_copyWSARegion (EMCState *script)
 
int o1_printText (EMCState *script)
 
int o1_loadSoundFile (EMCState *script)
 
int o1_displayWSAFrameOnHidPage (EMCState *script)
 
int o1_displayWSASequentialFrames (EMCState *script)
 
int o1_refreshCharacter (EMCState *script)
 
int o1_internalAnimOff (EMCState *script)
 
int o1_changeCharactersXAndY (EMCState *script)
 
int o1_clearSceneAnimatorBeacon (EMCState *script)
 
int o1_querySceneAnimatorBeacon (EMCState *script)
 
int o1_refreshSceneAnimator (EMCState *script)
 
int o1_placeItemInOffScene (EMCState *script)
 
int o1_wipeDownMouseItem (EMCState *script)
 
int o1_placeCharacterInOtherScene (EMCState *script)
 
int o1_getKey (EMCState *script)
 
int o1_specificItemInInventory (EMCState *script)
 
int o1_popMobileNPCIntoScene (EMCState *script)
 
int o1_mobileCharacterInScene (EMCState *script)
 
int o1_hideMobileCharacter (EMCState *script)
 
int o1_unhideMobileCharacter (EMCState *script)
 
int o1_setCharacterLocation (EMCState *script)
 
int o1_walkCharacterToPoint (EMCState *script)
 
int o1_specialEventDisplayBrynnsNote (EMCState *script)
 
int o1_specialEventRemoveBrynnsNote (EMCState *script)
 
int o1_setLogicPage (EMCState *script)
 
int o1_fatPrint (EMCState *script)
 
int o1_preserveAllObjectBackgrounds (EMCState *script)
 
int o1_updateSceneAnimations (EMCState *script)
 
int o1_sceneAnimationActive (EMCState *script)
 
int o1_setCharacterMovementDelay (EMCState *script)
 
int o1_getCharacterFacing (EMCState *script)
 
int o1_bkgdScrollSceneAndMasksRight (EMCState *script)
 
int o1_dispelMagicAnimation (EMCState *script)
 
int o1_findBrightestFireberry (EMCState *script)
 
int o1_setFireberryGlowPalette (EMCState *script)
 
int o1_setDeathHandlerFlag (EMCState *script)
 
int o1_drinkPotionAnimation (EMCState *script)
 
int o1_makeAmuletAppear (EMCState *script)
 
int o1_drawItemShapeIntoScene (EMCState *script)
 
int o1_setCharacterCurrentFrame (EMCState *script)
 
int o1_waitForConfirmationMouseClick (EMCState *script)
 
int o1_pageFlip (EMCState *script)
 
int o1_setSceneFile (EMCState *script)
 
int o1_getItemInMarbleVase (EMCState *script)
 
int o1_setItemInMarbleVase (EMCState *script)
 
int o1_addItemToInventory (EMCState *script)
 
int o1_intPrint (EMCState *script)
 
int o1_shakeScreen (EMCState *script)
 
int o1_createAmuletJewel (EMCState *script)
 
int o1_setSceneAnimCurrXY (EMCState *script)
 
int o1_poisonBrandonAndRemaps (EMCState *script)
 
int o1_fillFlaskWithWater (EMCState *script)
 
int o1_getCharacterMovementDelay (EMCState *script)
 
int o1_getBirthstoneGem (EMCState *script)
 
int o1_queryBrandonStatusBit (EMCState *script)
 
int o1_playFluteAnimation (EMCState *script)
 
int o1_playWinterScrollSequence (EMCState *script)
 
int o1_getIdolGem (EMCState *script)
 
int o1_setIdolGem (EMCState *script)
 
int o1_totalItemsInScene (EMCState *script)
 
int o1_restoreBrandonsMovementDelay (EMCState *script)
 
int o1_setEntranceMouseCursorTrack (EMCState *script)
 
int o1_itemAppearsOnGround (EMCState *script)
 
int o1_setNoDrawShapesFlag (EMCState *script)
 
int o1_fadeEntirePalette (EMCState *script)
 
int o1_itemOnGroundHere (EMCState *script)
 
int o1_queryCauldronState (EMCState *script)
 
int o1_setCauldronState (EMCState *script)
 
int o1_queryCrystalState (EMCState *script)
 
int o1_setCrystalState (EMCState *script)
 
int o1_setPaletteRange (EMCState *script)
 
int o1_shrinkBrandonDown (EMCState *script)
 
int o1_growBrandonUp (EMCState *script)
 
int o1_setBrandonScaleXAndY (EMCState *script)
 
int o1_resetScaleMode (EMCState *script)
 
int o1_getScaleDepthTableValue (EMCState *script)
 
int o1_setScaleDepthTableValue (EMCState *script)
 
int o1_message (EMCState *script)
 
int o1_checkClickOnNPC (EMCState *script)
 
int o1_getFoyerItem (EMCState *script)
 
int o1_setFoyerItem (EMCState *script)
 
int o1_setNoItemDropRegion (EMCState *script)
 
int o1_walkMalcolmOn (EMCState *script)
 
int o1_passiveProtection (EMCState *script)
 
int o1_setPlayingLoop (EMCState *script)
 
int o1_brandonToStoneSequence (EMCState *script)
 
int o1_brandonHealingSequence (EMCState *script)
 
int o1_protectCommandLine (EMCState *script)
 
int o1_pauseMusicSeconds (EMCState *script)
 
int o1_resetMaskRegion (EMCState *script)
 
int o1_setPaletteChangeFlag (EMCState *script)
 
int o1_vocUnload (EMCState *script)
 
int o1_vocLoad (EMCState *script)
 
int o1_dummy (EMCState *script)
 
- Protected Member Functions inherited from Kyra::KyraEngine_v1
Common::Error run () override
 
bool hasFeature (EngineFeature f) const override
 
void pauseEngineIntern (bool pause) override
 
void setupKeyMap ()
 
void updateInput ()
 
int checkInput (Button *buttonList, bool mainLoop=false, int eventFlag=0x8000)
 
void removeInputTop ()
 
void transposeScreenOutputY (int yAdd)
 
int o1_queryGameFlag (EMCState *script)
 
int o1_setGameFlag (EMCState *script)
 
int o1_resetGameFlag (EMCState *script)
 
int o1_getRand (EMCState *script)
 
int o1_hideMouse (EMCState *script)
 
int o1_showMouse (EMCState *script)
 
int o1_setMousePos (EMCState *script)
 
int o1_setHandItem (EMCState *script)
 
int o1_removeHandItem (EMCState *script)
 
int o1_getMouseState (EMCState *script)
 
int o1_setDeathHandler (EMCState *script)
 
int o1_playWanderScoreViaMap (EMCState *script)
 
int o1_fillRect (EMCState *script)
 
int o1_blockInWalkableRegion (EMCState *script)
 
int o1_blockOutWalkableRegion (EMCState *script)
 
int o1_playSoundEffect (EMCState *script)
 
int16 emcSafeReadStack (EMCState *s, int x, int line, const char *file)
 
virtual int convertVolumeToMixer (int value)
 
virtual int convertVolumeFromMixer (int value)
 
int findSubPath (int x, int y, int toX, int toY, int *moveTable, int start, int end)
 
int getFacingFromPointToPoint (int x, int y, int toX, int toY)
 
int getOppositeFacingDirection (int dir)
 
void changePosTowardsFacing (int &x, int &y, int facing)
 
int getMoveTableSize (int *moveTable)
 
bool canLoadGameStateCurrently (Common::U32String *msg=nullptr) override
 
bool canSaveGameStateCurrently (Common::U32String *msg=nullptr) override
 
int getAutosaveSlot () const override
 
const char * getSavegameFilename (int num)
 
bool saveFileLoadable (int slot)
 
void loadGameStateCheck (int slot)
 
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 
Common::SeekableReadStreamopenSaveForReading (const char *filename, SaveHeader &header, bool checkID=true)
 
Common::OutSaveFileopenSaveForWriting (const char *filename, const char *saveName, const Graphics::Surface *thumbnail) const
 
virtual Graphics::SurfacegenerateSaveThumbnail () const
 
void updatePlayTimer ()
 
void restartPlayTimerAt (uint32 totalPlaySecs)
 
void pausePlayTimer (bool pause)
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
void defaultSyncSoundSettings ()
 

Protected Attributes

int32 _speechPlayTime
 
bool _seqPlayerFlag
 
bool _skipIntroFlag
 
bool _abortIntroFlag
 
bool _menuDirectlyToLoad
 
uint8 * _itemBkgBackUp [2]
 
uint8 * _shapes [373]
 
Item _itemInHand
 
bool _changedScene
 
int _unkScreenVar1
 
int _unkScreenVar2
 
int _unkScreenVar3
 
int _beadStateVar
 
int _unkAmuletVar
 
int _malcolmFlag
 
int _endSequenceSkipFlag
 
int _endSequenceNeedLoading
 
int _unkEndSeqVar2
 
uint8 * _endSequenceBackUpRect
 
int _unkEndSeqVar4
 
int _unkEndSeqVar5
 
int _lastDisplayedPanPage
 
uint8 * _panPagesTable [20]
 
Movie_finalA
 
Movie_finalB
 
Movie_finalC
 
Movie_movieObjects [10]
 
uint16 _entranceMouseCursorTracks [5]
 
uint16 _walkBlockNorth
 
uint16 _walkBlockEast
 
uint16 _walkBlockSouth
 
uint16 _walkBlockWest
 
int32 _scaleMode
 
int16 _scaleTable [145]
 
Common::Rect _noDropRects [11]
 
int8 _birthstoneGemTable [4]
 
int8 _idolGemsTable [3]
 
int8 _marbleVaseItem
 
int8 _foyerItemTable [3]
 
int8 _cauldronState
 
int8 _crystalState [2]
 
uint16 _brandonStatusBit
 
uint8 _brandonStatusBit0x02Flag
 
uint8 _brandonStatusBit0x20Flag
 
uint8 _brandonPoisonFlagsGFX [256]
 
int16 _brandonInvFlag
 
uint8 _poisonDeathCounter
 
int _brandonPosX
 
int _brandonPosY
 
uint16 _currentChatPartnerBackupFrame
 
uint16 _currentCharAnimFrame
 
int _characterFacingZeroCount [8]
 
int _characterFacingFourCount [8]
 
int8 * _sceneAnimTable [50]
 
uint8 _itemHtDat [145]
 
int _lastProcessedItem
 
int _lastProcessedItemHeight
 
int16 * _exitListPtr
 
int16 _exitList [11]
 
SceneExits _sceneExits
 
uint16 _currentRoom
 
int _scenePhasingFlag
 
int _sceneChangeState
 
int _loopFlag2
 
int _pathfinderFlag
 
int _pathfinderFlag2
 
int _lastFindWayRet
 
int * _movFacingTable
 
int8 _talkingCharNum
 
int8 _charSayUnk2
 
int8 _talkHeadAnimCharNum
 
int8 _currHeadShape
 
int _currentHeadFrameTableIndex
 
int8 _disabledTalkAnimObject
 
int8 _enabledTalkAnimObject
 
uint8 _currSentenceColor [3]
 
int8 _startSentencePalIndex
 
bool _fadeText
 
uint8 _configTextspeed
 
Screen::FontId _defaultFont
 
Screen::FontId _noteFont
 
int _defaultLineSpacing
 
Animator_LoK_animator
 
SeqPlayer_seq
 
Sprites_sprites
 
Screen_LoK_screen
 
EMCState _scriptMain
 
EMCState _npcScript
 
EMCData _npcScriptData
 
EMCState _scriptClick
 
EMCData _scriptClickData
 
Character_characterList
 
Character_currentCharacter
 
Button_buttonList
 
GUI_LoK_gui
 
uint16 _malcolmFrame
 
uint32 _malcolmTimer1
 
uint32 _malcolmTimer2
 
uint32 _beadStateTimer1
 
uint32 _beadStateTimer2
 
BeadState _beadState1
 
BeadState _beadState2
 
struct Kyra::KyraEngine_LoK::KyragemState _kyragemFadingState
 
const uint8 * _seq_Forest
 
const uint8 * _seq_KallakWriting
 
const uint8 * _seq_KyrandiaLogo
 
const uint8 * _seq_KallakMalcolm
 
const uint8 * _seq_MalcolmTree
 
const uint8 * _seq_WestwoodLogo
 
const uint8 * _seq_Demo1
 
const uint8 * _seq_Demo2
 
const uint8 * _seq_Demo3
 
const uint8 * _seq_Demo4
 
const uint8 * _seq_Reunion
 
const char *const * _seq_WSATable
 
const char *const * _seq_CPSTable
 
const char *const * _seq_COLTable
 
const char *const * _seq_textsTable
 
const char *const * _storyStrings
 
int _seq_WSATable_Size
 
int _seq_CPSTable_Size
 
int _seq_COLTable_Size
 
int _seq_textsTable_Size
 
int _storyStringsSize
 
const char *const * _itemList
 
const char *const * _takenList
 
const char *const * _placedList
 
const char *const * _droppedList
 
const char *const * _noDropList
 
const char *const * _putDownFirst
 
const char *const * _waitForAmulet
 
const char *const * _blackJewel
 
const char *const * _poisonGone
 
const char *const * _healingTip
 
const char *const * _thePoison
 
const char *const * _fluteString
 
const char *const * _wispJewelStrings
 
const char *const * _magicJewelString
 
const char *const * _flaskFull
 
const char *const * _fullFlask
 
const char *const * _veryClever
 
const char *const * _homeString
 
const char *const * _newGameString
 
int _itemList_Size
 
int _takenList_Size
 
int _placedList_Size
 
int _droppedList_Size
 
int _noDropList_Size
 
int _putDownFirst_Size
 
int _waitForAmulet_Size
 
int _blackJewel_Size
 
int _poisonGone_Size
 
int _healingTip_Size
 
int _thePoison_Size
 
int _fluteString_Size
 
int _wispJewelStrings_Size
 
int _magicJewelString_Size
 
int _flaskFull_Size
 
int _fullFlask_Size
 
int _veryClever_Size
 
int _homeString_Size
 
int _newGameString_Size
 
const char *const * _characterImageTable
 
int _characterImageTableSize
 
const char *const * _guiStrings
 
int _guiStringsSize
 
const char *const * _configStrings
 
int _configStringsSize
 
Shape_defaultShapeTable
 
int _defaultShapeTableSize
 
const Shape_healingShapeTable
 
int _healingShapeTableSize
 
const Shape_healingShape2Table
 
int _healingShape2TableSize
 
const Shape_posionDeathShapeTable
 
int _posionDeathShapeTableSize
 
const Shape_fluteAnimShapeTable
 
int _fluteAnimShapeTableSize
 
const Shape_winterScrollTable
 
int _winterScrollTableSize
 
const Shape_winterScroll1Table
 
int _winterScroll1TableSize
 
const Shape_winterScroll2Table
 
int _winterScroll2TableSize
 
const Shape_drinkAnimationTable
 
int _drinkAnimationTableSize
 
const Shape_brandonToWispTable
 
int _brandonToWispTableSize
 
const Shape_magicAnimationTable
 
int _magicAnimationTableSize
 
const Shape_brandonStoneTable
 
int _brandonStoneTableSize
 
Room_roomTable
 
int _roomTableSize
 
const char *const * _roomFilenameTable
 
int _roomFilenameTableSize
 
const uint8 * _amuleteAnim
 
const uint8 *const * _specialPalettes
 
Button_buttonData
 
Button ** _buttonDataListPtr
 
- Protected Attributes inherited from Kyra::KyraEngine_v1
Resource_res
 
Sound_sound
 
TextDisplayer_text
 
StaticResource_staticres
 
TimerManager_timer
 
EMCInterpreter_emc
 
int _mouseX
 
int _mouseY
 
int _transOffsY
 
Common::List< Event_eventList
 
KeyMap _keyMap
 
bool _asciiCodeEvents
 
bool _kbEventSkip
 
uint8 _configWalkspeed
 
int _configMusic
 
bool _configSounds
 
uint8 _configVoice
 
bool _configNullSound
 
Common::RenderMode _configRenderMode
 
uint16 _tickLength
 
uint16 _gameSpeed
 
int8 _deathHandler
 
GameFlags _flags
 
Common::Array< const Opcode * > _opcodes
 
int _mouseState
 
uint8 _flagsTable [100]
 
Audio::SoundHandle _speechHandle
 
int _curMusicTheme
 
int _curSfxFile
 
int16 _lastMusicCommand
 
const int8 * _trackMap
 
int _trackMapSize
 
bool _preventScriptSfx
 
int _gameToLoad
 
bool _isSaveAllowed
 
Common::String _savegameFilename
 
uint32 _lastSecTick
 
uint32 _lastSecTickAtPauseStart
 
uint32 _totalPlaySecs
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 
int32 _activeEnhancements = kEnhGameBreakingBugFixes
 

Static Protected Attributes

static const int8 _dosTrackMap []
 
static const int _dosTrackMapSize
 
static const int8 _amigaTrackMap []
 
static const int _amigaTrackMapSize
 
static const int8 _macHQTrackMap []
 
static const int _macHQTrackMapSize
 
static const int8 _macLQTrackMap []
 
static const int _macLQTrackMapSize
 
static const uint16 _itemPosX []
 
static const uint8 _itemPosY []
 
static const uint8 _magicMouseItemStartFrame []
 
static const uint8 _magicMouseItemEndFrame []
 
static const uint8 _magicMouseItemStartFrame2 []
 
static const uint8 _magicMouseItemEndFrame2 []
 
static const uint16 _amuletX []
 
static const uint16 _amuletY []
 
static const uint16 _amuletX2 []
 
static const uint16 _amuletY2 []
 
- Static Protected Attributes inherited from Kyra::KyraEngine_v1
static const int8 _addXPosTable []
 
static const int8 _addYPosTable []
 
static const int8 _charAddXPosTable []
 
static const int8 _charAddYPosTable []
 

Additional Inherited Members

- Static Public Member Functions inherited from Engine
static void quitGame ()
 
static bool shouldQuit ()
 
static bool warnUserAboutUnsupportedGame (Common::String msg=Common::String())
 
static void errorUnsupportedGame (Common::String extraMsg)
 
- Protected Types inherited from Kyra::KyraEngine_v1
enum  ReadSaveHeaderError { kRSHENoError = 0, kRSHEInvalidType = 1, kRSHEInvalidVersion = 2, kRSHEIoError = 3 }
 
typedef Common::HashMap< Common::KeyCode, int16, KeyCodeHashKeyMap
 
- Static Protected Member Functions inherited from Kyra::KyraEngine_v1
static Common::String getSavegameFilename (const Common::String &target, int num)
 
static WARN_UNUSED_RESULT ReadSaveHeaderError readSaveHeader (Common::SeekableReadStream *file, SaveHeader &header, bool skipThumbnail=true)
 

Member Function Documentation

◆ loadGameState()

Common::Error Kyra::KyraEngine_LoK::loadGameState ( int  slot)
overrideprotectedvirtual

Load a game state.

Parameters
slotThe slot from which a save state should be loaded.
Returns
kNoError on success, otherwise an error code.

Implements Kyra::KyraEngine_v1.


The documentation for this class was generated from the following file: