Gnap::GnapEngine Class Reference

#include <gnap.h>

+ Inheritance diagram for Gnap::GnapEngine:
+ Collaboration diagram for Gnap::GnapEngine:

Public Member Functions

 GnapEngine (OSystem *syst, const ADGameDescription *gd)
 ~GnapEngine () override
void updateEvents ()
void gameUpdateTick ()
void saveTimers ()
void restoreTimers ()
void pauseGame ()
void resumeGame ()
void updatePause ()
int getRandom (int max)
int readSavegameDescription (int savegameNum, Common::String &description)
int loadSavegame (int savegameNum)
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 Save a game state. More...
Common::Error loadGameState (int slot) override
 Load a game state. More...
void synchronize (Common::Serializer &s)
void writeSavegameHeader (Common::OutSaveFile *out, GnapSavegameHeader &header)
void delayTicks (int val, int idx, bool updateCursor)
void delayTicksA (int val, int idx)
void delayTicksCursor (int val)
void setHotspot (int index, int16 x1, int16 y1, int16 x2, int16 y2, uint16 flags=SF_NONE, int16 walkX=-1, int16 walkY=-1)
int getHotspotIndexAtPos (Common::Point pos)
void updateCursorByHotspot ()
int getClickedHotspotId ()
int getInventoryItemSpriteNum (int index)
void updateMouseCursor ()
void setVerbCursor (int verbCursor)
void setCursor (int cursorIndex)
void showCursor ()
void hideCursor ()
void setGrabCursorSprite (int index)
void createGrabCursorSprite (int spriteId)
void freeGrabCursorSprite ()
void updateGrabCursorSprite (int x, int y)
void invClear ()
void invAdd (int itemId)
void invRemove (int itemId)
bool invHas (int itemId)
void clearFlags ()
void setFlag (int num)
void clearFlag (int num)
bool isFlag (int num)
Graphics::SurfaceaddFullScreenSprite (int resourceId, int id)
void removeFullScreenSprite ()
void showFullScreenSprite (int resourceId)
void queueInsertDeviceIcon ()
void insertDeviceIconActive ()
void removeDeviceIconActive ()
void setDeviceHotspot (int hotspotIndex, int x1, int y1, int x2, int y2)
int getSequenceTotalDuration (int resourceId)
bool isSoundPlaying (int resourceId)
void playSound (int resourceId, bool looping)
void stopSound (int resourceId)
void setSoundVolume (int resourceId, int volume)
void updateTimers ()
void initGameFlags (int num)
void loadStockDat ()
void mainLoop ()
void initScene ()
void endSceneInit ()
void afterScene ()
int initSceneLogic ()
void runSceneLogic ()
void checkGameKeys ()
void startSoundTimerA (int timerIndex)
int playSoundA ()
void startSoundTimerB (int timerIndex)
int playSoundB ()
void startSoundTimerC (int timerIndex)
int playSoundC ()
void startIdleTimer (int timerIndex)
void updateIdleTimer ()
void screenEffect (int dir, byte r, byte g, byte b)
bool isKeyStatus1 (int key)
bool isKeyStatus2 (int key)
void clearKeyStatus1 (int key)
void clearAllKeyStatus1 ()
void deleteSurface (Graphics::Surface **surface)
void createMenuSprite ()
void freeMenuSprite ()
void initMenuHotspots1 ()
void initMenuHotspots2 ()
void initMenuQuitQueryHotspots ()
void initSaveLoadHotspots ()
void drawInventoryFrames ()
void insertInventorySprites ()
void removeInventorySprites ()
void runMenu ()
void updateMenuStatusInventory ()
void updateMenuStatusMainMenu ()
void updateMenuStatusSaveGame ()
void updateMenuStatusLoadGame ()
void updateMenuStatusQueryQuit ()
bool isPointBlocked (int gridX, int gridY)
bool isPointBlocked (Common::Point gridPos)
void initSceneGrid (int gridMinX, int gridMinY, int gridMaxX, int gridMaxY)
bool testWalk (int animationIndex, int someStatus, int gridX1, int gridY1, int gridX2, int gridY2)
void doCallback (int callback)
void initGlobalSceneVars ()
void playSequences (int fullScreenSpriteId, int sequenceId1, int sequenceId2, int sequenceId3)
void toyUfoSetStatus (int flagNum)
int toyUfoGetSequenceId ()
bool toyUfoCheckTimer ()
void toyUfoFlyTo (int destX, int destY, int minX, int maxX, int minY, int maxY, int animationIndex)
void playMidi (const char *name)
void stopMidi ()
- Public Member Functions inherited from Engine
 Engine (OSystem *syst)
virtual ~Engine ()
virtual void initializePath (const Common::FSNode &gamePath)
 Init SearchMan according to the game path. More...
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 Prepare an error string, which is printed by the error() function. More...
virtual GUI::DebuggergetDebugger ()
 Return the engine's debugger instance, if any. More...
void setDebugger (GUI::Debugger *debugger)
 Sets the engine's debugger. More...
GUI::DebuggergetOrCreateDebugger ()
 Return the engine's debugger instance, or create one if none is present. More...
virtual void syncSoundSettings ()
 Notify the engine that the sound settings in the config manager may have changed and that it hence should adjust any internal volume etc. More...
virtual void flipMute ()
 Flip mute all sound option. More...
virtual Common::String getSaveStateName (int slot) const
 Generates the savegame filename. More...
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 Load a game state. More...
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...
virtual bool canLoadGameStateCurrently ()
 Indicates whether a game state can be loaded. More...
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 Save a game state. More...
virtual bool canSaveGameStateCurrently ()
 Indicates whether a game state can be saved. More...
bool saveGameDialog ()
 Shows the ScummVM save dialog, allowing users to save their game. More...
bool loadGameDialog ()
 Shows the ScummVM Restore dialog, allowing users to load a game. More...
void pauseEngine (bool pause)
 Pause or resume the engine. More...
bool isPaused () const
 Return whether the engine is currently paused or not. More...
void openMainMenuDialog ()
 Run the Global Main Menu Dialog. More...
uint32 getTotalPlayTime () const
 Get the total play time. More...
void setTotalPlayTime (uint32 time=0)
 Set the game time counter to the specified time. More...
Common::TimerManagergetTimerManager ()
Common::EventManagergetEventManager ()
Common::SaveFileManagergetSaveFileManager ()
void checkCD ()
 On some systems, check if the game appears to be run from CD. More...
void handleAutoSave ()
 Checks for whether it's time to do an autosave, and if so, does it. More...
void saveAutosaveIfEnabled ()
 Does an autosave immediately if autosaves are turned on. More...
virtual bool canSaveAutosaveCurrently ()
 Indicates whether an autosave can currently be saved. More...
virtual int getAutosaveSlot () const
 Returns the slot that should be used for autosaves. More...
bool shouldPerformAutoSave (int lastSaveTime)

Static Public Member Functions

static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, GnapSavegameHeader &header, bool skipThumbnail=true)
- Static Public Member Functions inherited from Engine
static void quitGame ()
 Request the engine to quit. More...
static bool shouldQuit ()
 Return whether the ENGINE should quit respectively should return to the launcher. More...
static MetaEnginegetMetaEngine ()
static bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...

Public Attributes

int _lastUpdateClock
bool _gameDone
bool _keyPressState [512]
bool _keyDownState [512]
bool _isPaused
int _timers [kMaxTimers]
int _savedTimers [kMaxTimers]
MouseButtonState _mouseButtonState
MouseButtonState _mouseClickState
bool _sceneSavegameLoaded
bool _wasSavegameLoaded
int _prevSceneNum
int _currentSceneNum
int _newSceneNum
bool _sceneDone
bool _sceneWaiting
uint32 _inventory
uint32 _gameFlags
Hotspot _hotspots [20]
Common::Point _hotspotsWalkPos [20]
int _hotspotsCount
int _sceneClickedHotspot
bool _isWaiting
bool _isLeavingScene
bool _isStockDatLoaded
int _newCursorValue
int _cursorValue
int _verbCursor
int _cursorIndex
Common::Point _mousePos
int _leftClickMouseX
int _leftClickMouseY
int _currGrabCursorX
int _currGrabCursorY
int _grabCursorSpriteIndex
int _newGrabCursorSpriteIndex
int _fullScreenSpriteId
int _deviceX1
int _deviceY1
int _soundTimerIndexA
int _soundTimerIndexB
int _soundTimerIndexC
int _idleTimerIndex
int _menuStatus
int _menuSpritesIndex
bool _menuDone
char _savegameFilenames [7][30]
Graphics::Surface_savegameSprites [7]
int _menuInventoryIndices [30]
Graphics::Surface_menuInventorySprites [30]
int _savegameIndex
int _gridMinX
int _gridMinY
int _gridMaxX
int _gridMaxY
int _toyUfoNextSequenceId
int _toyUfoSequenceId
int _toyUfoId
int _toyUfoActionStatus
int _toyUfoX
int _toyUfoY
int _s18GarbageCanPos
- Public Attributes inherited from Engine

Protected Member Functions

Common::Error run () override
 Init the engine and start its main loop. More...
bool hasFeature (EngineFeature f) const override
 Determine whether the engine supports the specified feature. More...
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
virtual void pauseEngineIntern (bool pause)
 Actual implementation of pauseEngine by subclasses. More...

Private Attributes

const ADGameDescription_gameDescription
Graphics::PixelFormat _pixelFormat
int _loadGameSlot

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature { kSupportsSubtitleOptions, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime }
 A feature in this context means an ability of the engine which can be either available or not. More...
- Protected Attributes inherited from Engine
const Common::String _targetName

Detailed Description

Definition at line 223 of file gnap.h.

Constructor & Destructor Documentation

◆ GnapEngine()

Gnap::GnapEngine::GnapEngine ( OSystem syst,
const ADGameDescription gd 

Definition at line 94 of file gnap.cpp.

◆ ~GnapEngine()

Gnap::GnapEngine::~GnapEngine ( )

Definition at line 193 of file gnap.cpp.

Member Function Documentation

◆ addFullScreenSprite()

Graphics::Surface * Gnap::GnapEngine::addFullScreenSprite ( int  resourceId,
int  id 

Definition at line 635 of file gnap.cpp.

◆ afterScene()

void Gnap::GnapEngine::afterScene ( )

Definition at line 877 of file gnap.cpp.

◆ checkGameKeys()

void Gnap::GnapEngine::checkGameKeys ( )

Definition at line 912 of file gnap.cpp.

◆ clearAllKeyStatus1()

void Gnap::GnapEngine::clearAllKeyStatus1 ( )

Definition at line 1023 of file gnap.cpp.

◆ clearFlag()

void Gnap::GnapEngine::clearFlag ( int  num)

Definition at line 627 of file gnap.cpp.

◆ clearFlags()

void Gnap::GnapEngine::clearFlags ( )

Definition at line 619 of file gnap.cpp.

◆ clearKeyStatus1()

void Gnap::GnapEngine::clearKeyStatus1 ( int  key)

Definition at line 1018 of file gnap.cpp.

◆ createGrabCursorSprite()

void Gnap::GnapEngine::createGrabCursorSprite ( int  spriteId)

Definition at line 571 of file gnap.cpp.

◆ createMenuSprite()

void Gnap::GnapEngine::createMenuSprite ( )

Definition at line 37 of file menu.cpp.

◆ delayTicks()

void Gnap::GnapEngine::delayTicks ( int  val,
int  idx = 0,
bool  updateCursor = false 

Definition at line 408 of file gnap.cpp.

◆ delayTicksA()

void Gnap::GnapEngine::delayTicksA ( int  val,
int  idx 

Definition at line 427 of file gnap.cpp.

◆ delayTicksCursor()

void Gnap::GnapEngine::delayTicksCursor ( int  val)

Definition at line 431 of file gnap.cpp.

◆ deleteSurface()

void Gnap::GnapEngine::deleteSurface ( Graphics::Surface **  surface)

Definition at line 1028 of file gnap.cpp.

◆ doCallback()

void Gnap::GnapEngine::doCallback ( int  callback)

Definition at line 1050 of file gnap.cpp.

◆ drawInventoryFrames()

void Gnap::GnapEngine::drawInventoryFrames ( )

Definition at line 155 of file menu.cpp.

◆ endSceneInit()

void Gnap::GnapEngine::endSceneInit ( )

Definition at line 871 of file gnap.cpp.

◆ freeGrabCursorSprite()

void Gnap::GnapEngine::freeGrabCursorSprite ( )

Definition at line 580 of file gnap.cpp.

◆ freeMenuSprite()

void Gnap::GnapEngine::freeMenuSprite ( )

Definition at line 41 of file menu.cpp.

◆ gameUpdateTick()

void Gnap::GnapEngine::gameUpdateTick ( )

Definition at line 319 of file gnap.cpp.

◆ getClickedHotspotId()

int Gnap::GnapEngine::getClickedHotspotId ( )

Definition at line 493 of file gnap.cpp.

◆ getHotspotIndexAtPos()

int Gnap::GnapEngine::getHotspotIndexAtPos ( Common::Point  pos)

Definition at line 442 of file gnap.cpp.

◆ getInventoryItemSpriteNum()

int Gnap::GnapEngine::getInventoryItemSpriteNum ( int  index)

Definition at line 508 of file gnap.cpp.

◆ getRandom()

int Gnap::GnapEngine::getRandom ( int  max)

Definition at line 395 of file gnap.cpp.

◆ getSequenceTotalDuration()

int Gnap::GnapEngine::getSequenceTotalDuration ( int  resourceId)

Definition at line 693 of file gnap.cpp.

◆ hasFeature()

bool Gnap::GnapEngine::hasFeature ( EngineFeature  f) const

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 115 of file detection.cpp.

◆ hideCursor()

void Gnap::GnapEngine::hideCursor ( )

Definition at line 558 of file gnap.cpp.

◆ initGameFlags()

void Gnap::GnapEngine::initGameFlags ( int  num)

Definition at line 729 of file gnap.cpp.

◆ initGlobalSceneVars()

void Gnap::GnapEngine::initGlobalSceneVars ( )

Definition at line 1064 of file gnap.cpp.

◆ initMenuHotspots1()

void Gnap::GnapEngine::initMenuHotspots1 ( )

Definition at line 47 of file menu.cpp.

◆ initMenuHotspots2()

void Gnap::GnapEngine::initMenuHotspots2 ( )

Definition at line 74 of file menu.cpp.

◆ initMenuQuitQueryHotspots()

void Gnap::GnapEngine::initMenuQuitQueryHotspots ( )

Definition at line 102 of file menu.cpp.

◆ initSaveLoadHotspots()

void Gnap::GnapEngine::initSaveLoadHotspots ( )

Definition at line 121 of file menu.cpp.

◆ initScene()

void Gnap::GnapEngine::initScene ( )

Definition at line 830 of file gnap.cpp.

◆ initSceneGrid()

void Gnap::GnapEngine::initSceneGrid ( int  gridMinX,
int  gridMinY,
int  gridMaxX,
int  gridMaxY 

Definition at line 30 of file grid.cpp.

◆ initSceneLogic()

int Gnap::GnapEngine::initSceneLogic ( )

Definition at line 41 of file scenecore.cpp.

◆ insertDeviceIconActive()

void Gnap::GnapEngine::insertDeviceIconActive ( )

Definition at line 667 of file gnap.cpp.

◆ insertInventorySprites()

void Gnap::GnapEngine::insertInventorySprites ( )

Definition at line 160 of file menu.cpp.

◆ invAdd()

void Gnap::GnapEngine::invAdd ( int  itemId)

Definition at line 607 of file gnap.cpp.

◆ invClear()

void Gnap::GnapEngine::invClear ( )

Definition at line 603 of file gnap.cpp.

◆ invHas()

bool Gnap::GnapEngine::invHas ( int  itemId)

Definition at line 615 of file gnap.cpp.

◆ invRemove()

void Gnap::GnapEngine::invRemove ( int  itemId)

Definition at line 611 of file gnap.cpp.

◆ isFlag()

bool Gnap::GnapEngine::isFlag ( int  num)

Definition at line 631 of file gnap.cpp.

◆ isKeyStatus1()

bool Gnap::GnapEngine::isKeyStatus1 ( int  key)

Definition at line 1010 of file gnap.cpp.

◆ isKeyStatus2()

bool Gnap::GnapEngine::isKeyStatus2 ( int  key)

Definition at line 1014 of file gnap.cpp.

◆ isPointBlocked() [1/2]

bool Gnap::GnapEngine::isPointBlocked ( Common::Point  gridPos)

Definition at line 41 of file grid.cpp.

◆ isPointBlocked() [2/2]

bool Gnap::GnapEngine::isPointBlocked ( int  gridX,
int  gridY 

Definition at line 45 of file grid.cpp.

◆ isSoundPlaying()

bool Gnap::GnapEngine::isSoundPlaying ( int  resourceId)

Definition at line 706 of file gnap.cpp.

◆ loadGameState()

Common::Error GnapEngine::loadGameState ( int  slot)

Load a game state.

slotthe slot from which a savestate should be loaded
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 631 of file menu.cpp.

◆ loadSavegame()

int Gnap::GnapEngine::loadSavegame ( int  savegameNum)

Definition at line 404 of file gnap.cpp.

◆ loadStockDat()

void Gnap::GnapEngine::loadStockDat ( )

Definition at line 762 of file gnap.cpp.

◆ mainLoop()

void Gnap::GnapEngine::mainLoop ( )

Definition at line 770 of file gnap.cpp.

◆ pauseGame()

void Gnap::GnapEngine::pauseGame ( )

Definition at line 353 of file gnap.cpp.

◆ playMidi()

void Gnap::GnapEngine::playMidi ( const char *  name)

Definition at line 1224 of file gnap.cpp.

◆ playSequences()

void Gnap::GnapEngine::playSequences ( int  fullScreenSpriteId,
int  sequenceId1,
int  sequenceId2,
int  sequenceId3 

Definition at line 1075 of file gnap.cpp.

◆ playSound()

void Gnap::GnapEngine::playSound ( int  resourceId,
bool  looping 

Definition at line 710 of file gnap.cpp.

◆ playSoundA()

int Gnap::GnapEngine::playSoundA ( )

Definition at line 925 of file gnap.cpp.

◆ playSoundB()

int Gnap::GnapEngine::playSoundB ( )

Definition at line 946 of file gnap.cpp.

◆ playSoundC()

int Gnap::GnapEngine::playSoundC ( )

Definition at line 969 of file gnap.cpp.

◆ queueInsertDeviceIcon()

void Gnap::GnapEngine::queueInsertDeviceIcon ( )

Definition at line 663 of file gnap.cpp.

◆ readSavegameDescription()

int Gnap::GnapEngine::readSavegameDescription ( int  savegameNum,
Common::String description 

Definition at line 399 of file gnap.cpp.

◆ readSavegameHeader()

WARN_UNUSED_RESULT bool GnapEngine::readSavegameHeader ( Common::InSaveFile in,
GnapSavegameHeader header,
bool  skipThumbnail = true 

Definition at line 594 of file menu.cpp.

◆ removeDeviceIconActive()

void Gnap::GnapEngine::removeDeviceIconActive ( )

Definition at line 671 of file gnap.cpp.

◆ removeFullScreenSprite()

void Gnap::GnapEngine::removeFullScreenSprite ( )

Definition at line 642 of file gnap.cpp.

◆ removeInventorySprites()

void Gnap::GnapEngine::removeInventorySprites ( )

Definition at line 187 of file menu.cpp.

◆ restoreTimers()

void Gnap::GnapEngine::restoreTimers ( )

Definition at line 348 of file gnap.cpp.

◆ resumeGame()

void Gnap::GnapEngine::resumeGame ( )

Definition at line 367 of file gnap.cpp.

◆ run()

Common::Error Gnap::GnapEngine::run ( )

Init the engine and start its main loop.

returns kNoError on success, else an error code.

Implements Engine.

Definition at line 199 of file gnap.cpp.

◆ runMenu()

void Gnap::GnapEngine::runMenu ( )

Definition at line 202 of file menu.cpp.

◆ runSceneLogic()

void Gnap::GnapEngine::runSceneLogic ( )

Definition at line 409 of file scenecore.cpp.

◆ saveGameState()

Common::Error GnapEngine::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 

Save a game state.

slotthe slot into which the savestate should be stored
desca description for the savestate, entered by the user
isAutosaveExpected to be true if an autosave is being created
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 530 of file menu.cpp.

◆ saveTimers()

void Gnap::GnapEngine::saveTimers ( )

Definition at line 343 of file gnap.cpp.

◆ screenEffect()

void Gnap::GnapEngine::screenEffect ( int  dir,
byte  r,
byte  g,
byte  b 

Definition at line 997 of file gnap.cpp.

◆ setCursor()

void Gnap::GnapEngine::setCursor ( int  cursorIndex)

Definition at line 541 of file gnap.cpp.

◆ setDeviceHotspot()

void Gnap::GnapEngine::setDeviceHotspot ( int  hotspotIndex,
int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 675 of file gnap.cpp.

◆ setFlag()

void Gnap::GnapEngine::setFlag ( int  num)

Definition at line 623 of file gnap.cpp.

◆ setGrabCursorSprite()

void Gnap::GnapEngine::setGrabCursorSprite ( int  index)

Definition at line 562 of file gnap.cpp.

◆ setHotspot()

void Gnap::GnapEngine::setHotspot ( int  index,
int16  x1,
int16  y1,
int16  x2,
int16  y2,
uint16  flags = SF_NONE,
int16  walkX = -1,
int16  walkY = -1 

Definition at line 435 of file gnap.cpp.

◆ setSoundVolume()

void Gnap::GnapEngine::setSoundVolume ( int  resourceId,
int  volume 

Definition at line 719 of file gnap.cpp.

◆ setVerbCursor()

void Gnap::GnapEngine::setVerbCursor ( int  verbCursor)

Definition at line 535 of file gnap.cpp.

◆ showCursor()

void Gnap::GnapEngine::showCursor ( )

Definition at line 554 of file gnap.cpp.

◆ showFullScreenSprite()

void Gnap::GnapEngine::showFullScreenSprite ( int  resourceId)

Definition at line 647 of file gnap.cpp.

◆ startIdleTimer()

void Gnap::GnapEngine::startIdleTimer ( int  timerIndex)

Definition at line 985 of file gnap.cpp.

◆ startSoundTimerA()

void Gnap::GnapEngine::startSoundTimerA ( int  timerIndex)

Definition at line 920 of file gnap.cpp.

◆ startSoundTimerB()

void Gnap::GnapEngine::startSoundTimerB ( int  timerIndex)

Definition at line 941 of file gnap.cpp.

◆ startSoundTimerC()

void Gnap::GnapEngine::startSoundTimerC ( int  timerIndex)

Definition at line 964 of file gnap.cpp.

◆ stopMidi()

void Gnap::GnapEngine::stopMidi ( )

Definition at line 1232 of file gnap.cpp.

◆ stopSound()

void Gnap::GnapEngine::stopSound ( int  resourceId)

Definition at line 715 of file gnap.cpp.

◆ synchronize()

void GnapEngine::synchronize ( Common::Serializer s)

Definition at line 549 of file menu.cpp.

◆ testWalk()

bool Gnap::GnapEngine::testWalk ( int  animationIndex,
int  someStatus,
int  gridX1,
int  gridY1,
int  gridX2,
int  gridY2 

Definition at line 1036 of file gnap.cpp.

◆ toyUfoCheckTimer()

bool Gnap::GnapEngine::toyUfoCheckTimer ( )

Definition at line 1120 of file gnap.cpp.

◆ toyUfoFlyTo()

void Gnap::GnapEngine::toyUfoFlyTo ( int  destX,
int  destY,
int  minX,
int  maxX,
int  minY,
int  maxY,
int  animationIndex 

Definition at line 1129 of file gnap.cpp.

◆ toyUfoGetSequenceId()

int Gnap::GnapEngine::toyUfoGetSequenceId ( )

Definition at line 1108 of file gnap.cpp.

◆ toyUfoSetStatus()

void Gnap::GnapEngine::toyUfoSetStatus ( int  flagNum)

Definition at line 1100 of file gnap.cpp.

◆ updateCursorByHotspot()

void Gnap::GnapEngine::updateCursorByHotspot ( )

Definition at line 450 of file gnap.cpp.

◆ updateEvents()

void Gnap::GnapEngine::updateEvents ( )

Definition at line 279 of file gnap.cpp.

◆ updateGrabCursorSprite()

void Gnap::GnapEngine::updateGrabCursorSprite ( int  x,
int  y 

Definition at line 589 of file gnap.cpp.

◆ updateIdleTimer()

void Gnap::GnapEngine::updateIdleTimer ( )

Definition at line 990 of file gnap.cpp.

◆ updateMenuStatusInventory()

void Gnap::GnapEngine::updateMenuStatusInventory ( )

Definition at line 313 of file menu.cpp.

◆ updateMenuStatusLoadGame()

void GnapEngine::updateMenuStatusLoadGame ( )

Definition at line 819 of file menu.cpp.

◆ updateMenuStatusMainMenu()

void Gnap::GnapEngine::updateMenuStatusMainMenu ( )

Definition at line 387 of file menu.cpp.

◆ updateMenuStatusQueryQuit()

void GnapEngine::updateMenuStatusQueryQuit ( )

Definition at line 848 of file menu.cpp.

◆ updateMenuStatusSaveGame()

void GnapEngine::updateMenuStatusSaveGame ( )

Definition at line 656 of file menu.cpp.

◆ updateMouseCursor()

void Gnap::GnapEngine::updateMouseCursor ( )

Definition at line 512 of file gnap.cpp.

◆ updatePause()

void Gnap::GnapEngine::updatePause ( )

Definition at line 385 of file gnap.cpp.

◆ updateTimers()

void Gnap::GnapEngine::updateTimers ( )

Definition at line 723 of file gnap.cpp.

◆ writeSavegameHeader()

void GnapEngine::writeSavegameHeader ( Common::OutSaveFile out,
GnapSavegameHeader header 

Definition at line 570 of file menu.cpp.

Member Data Documentation

◆ _backgroundSurface

Graphics::Surface* Gnap::GnapEngine::_backgroundSurface

Definition at line 269 of file gnap.h.

◆ _currentSceneNum

int Gnap::GnapEngine::_currentSceneNum

Definition at line 270 of file gnap.h.

◆ _currGrabCursorX

int Gnap::GnapEngine::_currGrabCursorX

Definition at line 292 of file gnap.h.

◆ _currGrabCursorY

int Gnap::GnapEngine::_currGrabCursorY

Definition at line 292 of file gnap.h.

◆ _cursorIndex

int Gnap::GnapEngine::_cursorIndex

Definition at line 287 of file gnap.h.

◆ _cursorSprite

Graphics::Surface* Gnap::GnapEngine::_cursorSprite

Definition at line 419 of file gnap.h.

◆ _cursorValue

int Gnap::GnapEngine::_cursorValue

Definition at line 285 of file gnap.h.

◆ _dat

DatManager* Gnap::GnapEngine::_dat

Definition at line 239 of file gnap.h.

◆ _debugger

Debugger* Gnap::GnapEngine::_debugger

Definition at line 245 of file gnap.h.

◆ _deviceX1

int Gnap::GnapEngine::_deviceX1

Definition at line 298 of file gnap.h.

◆ _deviceY1

int Gnap::GnapEngine::_deviceY1

Definition at line 298 of file gnap.h.

◆ _exe

Common::PEResources* Gnap::GnapEngine::_exe

Definition at line 237 of file gnap.h.

◆ _font

Graphics::Font* Gnap::GnapEngine::_font

Definition at line 250 of file gnap.h.

◆ _fullScreenSprite

Graphics::Surface* Gnap::GnapEngine::_fullScreenSprite

Definition at line 295 of file gnap.h.

◆ _fullScreenSpriteId

int Gnap::GnapEngine::_fullScreenSpriteId

Definition at line 296 of file gnap.h.

◆ _gameDescription

const ADGameDescription* Gnap::GnapEngine::_gameDescription

Definition at line 231 of file gnap.h.

◆ _gameDone

bool Gnap::GnapEngine::_gameDone

Definition at line 255 of file gnap.h.

◆ _gameFlags

uint32 Gnap::GnapEngine::_gameFlags

Definition at line 273 of file gnap.h.

◆ _gameSys

GameSys* Gnap::GnapEngine::_gameSys

Definition at line 243 of file gnap.h.

◆ _gnap

PlayerGnap* Gnap::GnapEngine::_gnap

Definition at line 247 of file gnap.h.

◆ _grabCursorSprite

Graphics::Surface* Gnap::GnapEngine::_grabCursorSprite

Definition at line 291 of file gnap.h.

◆ _grabCursorSpriteIndex

int Gnap::GnapEngine::_grabCursorSpriteIndex

Definition at line 293 of file gnap.h.

◆ _gridMaxX

int Gnap::GnapEngine::_gridMaxX

Definition at line 441 of file gnap.h.

◆ _gridMaxY

int Gnap::GnapEngine::_gridMaxY

Definition at line 441 of file gnap.h.

◆ _gridMinX

int Gnap::GnapEngine::_gridMinX

Definition at line 440 of file gnap.h.

◆ _gridMinY

int Gnap::GnapEngine::_gridMinY

Definition at line 440 of file gnap.h.

◆ _hotspots

Hotspot Gnap::GnapEngine::_hotspots[20]

Definition at line 275 of file gnap.h.

◆ _hotspotsCount

int Gnap::GnapEngine::_hotspotsCount

Definition at line 277 of file gnap.h.

◆ _hotspotsWalkPos

Common::Point Gnap::GnapEngine::_hotspotsWalkPos[20]

Definition at line 276 of file gnap.h.

◆ _idleTimerIndex

int Gnap::GnapEngine::_idleTimerIndex

Definition at line 303 of file gnap.h.

◆ _inventory

uint32 Gnap::GnapEngine::_inventory

Definition at line 273 of file gnap.h.

◆ _isLeavingScene

bool Gnap::GnapEngine::_isLeavingScene

Definition at line 281 of file gnap.h.

◆ _isPaused

bool Gnap::GnapEngine::_isPaused

Definition at line 260 of file gnap.h.

◆ _isStockDatLoaded

bool Gnap::GnapEngine::_isStockDatLoaded

Definition at line 283 of file gnap.h.

◆ _isWaiting

bool Gnap::GnapEngine::_isWaiting

Definition at line 280 of file gnap.h.

◆ _keyDownState

bool Gnap::GnapEngine::_keyDownState[512]

Definition at line 258 of file gnap.h.

◆ _keyPressState

bool Gnap::GnapEngine::_keyPressState[512]

Definition at line 257 of file gnap.h.

◆ _largeSprite

Graphics::Surface* Gnap::GnapEngine::_largeSprite

Definition at line 412 of file gnap.h.

◆ _lastUpdateClock

int Gnap::GnapEngine::_lastUpdateClock

Definition at line 254 of file gnap.h.

◆ _leftClickMouseX

int Gnap::GnapEngine::_leftClickMouseX

Definition at line 289 of file gnap.h.

◆ _leftClickMouseY

int Gnap::GnapEngine::_leftClickMouseY

Definition at line 289 of file gnap.h.

◆ _loadGameSlot

int Gnap::GnapEngine::_loadGameSlot

Definition at line 233 of file gnap.h.

◆ _menuBackgroundSurface

Graphics::Surface* Gnap::GnapEngine::_menuBackgroundSurface

Definition at line 410 of file gnap.h.

◆ _menuDone

bool Gnap::GnapEngine::_menuDone

Definition at line 409 of file gnap.h.

◆ _menuInventoryIndices

int Gnap::GnapEngine::_menuInventoryIndices[30]

Definition at line 420 of file gnap.h.

◆ _menuInventorySprites

Graphics::Surface* Gnap::GnapEngine::_menuInventorySprites[30]

Definition at line 421 of file gnap.h.

◆ _menuQuitQuerySprite

Graphics::Surface* Gnap::GnapEngine::_menuQuitQuerySprite

Definition at line 411 of file gnap.h.

◆ _menuSaveLoadSprite

Graphics::Surface* Gnap::GnapEngine::_menuSaveLoadSprite

Definition at line 413 of file gnap.h.

◆ _menuSprite1

Graphics::Surface* Gnap::GnapEngine::_menuSprite1

Definition at line 415 of file gnap.h.

◆ _menuSprite2

Graphics::Surface* Gnap::GnapEngine::_menuSprite2

Definition at line 414 of file gnap.h.

◆ _menuSpritesIndex

int Gnap::GnapEngine::_menuSpritesIndex

Definition at line 408 of file gnap.h.

◆ _menuStatus

int Gnap::GnapEngine::_menuStatus

Definition at line 407 of file gnap.h.

◆ _mouseButtonState

MouseButtonState Gnap::GnapEngine::_mouseButtonState

Definition at line 264 of file gnap.h.

◆ _mouseClickState

MouseButtonState Gnap::GnapEngine::_mouseClickState

Definition at line 265 of file gnap.h.

◆ _mousePos

Common::Point Gnap::GnapEngine::_mousePos

Definition at line 288 of file gnap.h.

◆ _music

MusicPlayer* Gnap::GnapEngine::_music

Definition at line 249 of file gnap.h.

◆ _newCursorValue

int Gnap::GnapEngine::_newCursorValue

Definition at line 285 of file gnap.h.

◆ _newGrabCursorSpriteIndex

int Gnap::GnapEngine::_newGrabCursorSpriteIndex

Definition at line 293 of file gnap.h.

◆ _newSceneNum

int Gnap::GnapEngine::_newSceneNum

Definition at line 270 of file gnap.h.

◆ _pauseSprite

Graphics::Surface* Gnap::GnapEngine::_pauseSprite

Definition at line 261 of file gnap.h.

◆ _pixelFormat

Graphics::PixelFormat Gnap::GnapEngine::_pixelFormat

Definition at line 232 of file gnap.h.

◆ _plat

PlayerPlat* Gnap::GnapEngine::_plat

Definition at line 248 of file gnap.h.

◆ _prevSceneNum

int Gnap::GnapEngine::_prevSceneNum

Definition at line 270 of file gnap.h.

◆ _random

Common::RandomSource* Gnap::GnapEngine::_random

Definition at line 236 of file gnap.h.

◆ _s18GarbageCanPos

int Gnap::GnapEngine::_s18GarbageCanPos

Definition at line 461 of file gnap.h.

◆ _savedTimers

int Gnap::GnapEngine::_savedTimers[kMaxTimers]

Definition at line 262 of file gnap.h.

◆ _savegameFilenames

char Gnap::GnapEngine::_savegameFilenames[7][30]

Definition at line 416 of file gnap.h.

◆ _savegameIndex

int Gnap::GnapEngine::_savegameIndex

Definition at line 422 of file gnap.h.

◆ _savegameSprites

Graphics::Surface* Gnap::GnapEngine::_savegameSprites[7]

Definition at line 417 of file gnap.h.

◆ _scene

Scene* Gnap::GnapEngine::_scene

Definition at line 246 of file gnap.h.

◆ _sceneClickedHotspot

int Gnap::GnapEngine::_sceneClickedHotspot

Definition at line 278 of file gnap.h.

◆ _sceneDone

bool Gnap::GnapEngine::_sceneDone

Definition at line 271 of file gnap.h.

◆ _sceneSavegameLoaded

bool Gnap::GnapEngine::_sceneSavegameLoaded

Definition at line 267 of file gnap.h.

◆ _sceneWaiting

bool Gnap::GnapEngine::_sceneWaiting

Definition at line 271 of file gnap.h.

◆ _sequenceCache

SequenceCache* Gnap::GnapEngine::_sequenceCache

Definition at line 242 of file gnap.h.

◆ _soundCache

SoundCache* Gnap::GnapEngine::_soundCache

Definition at line 241 of file gnap.h.

◆ _soundMan

SoundMan* Gnap::GnapEngine::_soundMan

Definition at line 244 of file gnap.h.

◆ _soundTimerIndexA

int Gnap::GnapEngine::_soundTimerIndexA

Definition at line 300 of file gnap.h.

◆ _soundTimerIndexB

int Gnap::GnapEngine::_soundTimerIndexB

Definition at line 301 of file gnap.h.

◆ _soundTimerIndexC

int Gnap::GnapEngine::_soundTimerIndexC

Definition at line 302 of file gnap.h.

◆ _spriteCache

SpriteCache* Gnap::GnapEngine::_spriteCache

Definition at line 240 of file gnap.h.

◆ _spriteHandle

Graphics::Surface* Gnap::GnapEngine::_spriteHandle

Definition at line 418 of file gnap.h.

◆ _tempThumbnail

Common::MemoryWriteStreamDynamic* Gnap::GnapEngine::_tempThumbnail

Definition at line 252 of file gnap.h.

◆ _timers

int Gnap::GnapEngine::_timers[kMaxTimers]

Definition at line 262 of file gnap.h.

◆ _toyUfoActionStatus

int Gnap::GnapEngine::_toyUfoActionStatus

Definition at line 453 of file gnap.h.

◆ _toyUfoId

int Gnap::GnapEngine::_toyUfoId

Definition at line 452 of file gnap.h.

◆ _toyUfoNextSequenceId

int Gnap::GnapEngine::_toyUfoNextSequenceId

Definition at line 451 of file gnap.h.

◆ _toyUfoSequenceId

int Gnap::GnapEngine::_toyUfoSequenceId

Definition at line 451 of file gnap.h.

◆ _toyUfoX

int Gnap::GnapEngine::_toyUfoX

Definition at line 454 of file gnap.h.

◆ _toyUfoY

int Gnap::GnapEngine::_toyUfoY

Definition at line 455 of file gnap.h.

◆ _verbCursor

int Gnap::GnapEngine::_verbCursor

Definition at line 287 of file gnap.h.

◆ _wasSavegameLoaded

bool Gnap::GnapEngine::_wasSavegameLoaded

Definition at line 267 of file gnap.h.

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