ScummVM API documentation
Neverhood::GameModule Class Reference
Inheritance diagram for Neverhood::GameModule:
Neverhood::Module Neverhood::Entity

Public Member Functions

 GameModule (NeverhoodEngine *vm)
 
void startup ()
 
void requestRestoreGame ()
 
void requestRestartGame (bool requestMainMenu)
 
void redrawPrevChildObject ()
 
void checkRequests ()
 
void handleMouseMove (int16 x, int16 y)
 
void handleMouseDown (int16 x, int16 y)
 
void handleMouseUp (int16 x, int16 y)
 
void handleWheelUp ()
 
void handleWheelDown ()
 
void handleSpaceKey ()
 
void handleAsciiKey (char key)
 
void handleKeyDown (Common::KeyCode keyCode)
 
void handleEscapeKey ()
 
void initKeySlotsPuzzle ()
 
void initMemoryPuzzle ()
 
void initWaterPipesPuzzle ()
 
void initRadioPuzzle ()
 
void initTestTubes1Puzzle ()
 
void initTestTubes2Puzzle ()
 
void initCannonSymbolsPuzzle ()
 
void initCodeSymbolsPuzzle ()
 
void initCubeSymbolsPuzzle ()
 
void initCrystalColorsPuzzle ()
 
uint32 getCurrRadioMusicFileHash ()
 
int getCurrentModuleNum ()
 
int getPreviousModuleNum ()
 
void createModule (int moduleNum, int which)
 
- Public Member Functions inherited from Neverhood::Module
 Module (NeverhoodEngine *vm, Module *parentModule)
 
void draw () override
 
SceneType getSceneType ()
 
- Public Member Functions inherited from Neverhood::Entity
 Entity (NeverhoodEngine *vm, int priority)
 
void handleUpdate ()
 
uint32 receiveMessage (int messageNum, const MessageParam &param, Entity *sender)
 
uint32 sendMessage (Entity *receiver, int messageNum, const MessageParam &param)
 
uint32 sendMessage (Entity *receiver, int messageNum, uint32 param)
 
uint32 sendPointMessage (Entity *receiver, int messageNum, const NPoint &param)
 
uint32 sendEntityMessage (Entity *receiver, int messageNum, Entity *param)
 
uint32 getGlobalVar (uint32 nameHash)
 
void setGlobalVar (uint32 nameHash, uint32 value)
 
uint32 getSubVar (uint32 nameHash, uint32 subNameHash)
 
void setSubVar (uint32 nameHash, uint32 subNameHash, uint32 value)
 
void incGlobalVar (uint32 nameHash, int incrValue)
 
void incSubVar (uint32 nameHash, uint32 subNameHash, int incrValue)
 
int getPriority () const
 
bool hasMessageHandler () const
 

Static Public Member Functions

static byte parseCrystalColor (char colorLetter)
 

Protected Member Functions

uint32 handleMessage (int messageNum, const MessageParam &param, Entity *sender)
 
void createModuleByHash (uint32 nameHash)
 
void updateModule ()
 
void openMainMenu ()
 
void createMenuModule ()
 
void updateMenuModule ()
 
- Protected Member Functions inherited from Neverhood::Module
uint32 handleMessage (int messageNum, const MessageParam &param, Entity *sender)
 
NavigationScenenavigationScene ()
 
void createNavigationScene (uint32 navigationListId, int navigationIndex, const byte *itemsTypes=NULL)
 
void createSmackerScene (uint32 fileHash, bool doubleSurface, bool canSkip, bool canAbort)
 
void createSmackerScene (const uint32 *fileHashList, bool doubleSurface, bool canSkip, bool canAbort)
 
void createStaticScene (uint32 backgroundFileHash, uint32 cursorFileHash)
 
void createDemoScene ()
 
bool updateChild ()
 
void leaveModule (uint32 result)
 
- Protected Member Functions inherited from Neverhood::Entity
SoundResourcegetSoundResource (uint index)
 
void loadSound (uint index, uint32 fileHash)
 
void playSound (uint index, uint32 fileHash=0)
 
void stopSound (uint index)
 
bool isSoundPlaying (uint index)
 
void setSoundVolume (uint index, int volume)
 
void setSoundPan (uint index, int pan)
 
void deleteSoundResources ()
 

Protected Attributes

int _moduleNum
 
Entity_prevChildObject
 
int _prevModuleNum
 
bool _restoreGameRequested
 
bool _restartGameRequested
 
bool _canRequestMainMenu
 
bool _mainMenuRequested
 
Common::String _currentCheat
 
- Protected Attributes inherited from Neverhood::Module
Module_parentModule
 
bool _done
 
uint32 _moduleResult
 
SceneType _sceneType
 
int _navigationAreaType
 
- Protected Attributes inherited from Neverhood::Entity
void(Entity::* _updateHandlerCb )()
 
uint32(Entity::* _messageHandlerCb )(int messageNum, const MessageParam &param, Entity *sender)
 
NeverhoodEngine_vm
 
int _priority
 
SoundResource ** _soundResources
 

Additional Inherited Members

- Public Attributes inherited from Neverhood::Module
Entity_childObject
 
- Public Attributes inherited from Neverhood::Entity
Common::String _updateHandlerCbName
 
Common::String _messageHandlerCbName
 

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