ScummVM API documentation
Neverhood::Scene Class Reference
Inheritance diagram for Neverhood::Scene:
Neverhood::Entity Neverhood::CreditsScene Neverhood::DiskplayerScene Neverhood::GameStateMenu Neverhood::HallOfRecordsScene Neverhood::MainMenu Neverhood::NavigationScene Neverhood::QueryOverwriteMenu Neverhood::Scene1001 Neverhood::Scene1002 Neverhood::Scene1004 Neverhood::Scene1005 Neverhood::Scene1105 Neverhood::Scene1109 Neverhood::Scene1201 Neverhood::Scene1202 Neverhood::Scene1302 Neverhood::Scene1303 Neverhood::Scene1304 Neverhood::Scene1305 Neverhood::Scene1306 Neverhood::Scene1307 Neverhood::Scene1308 Neverhood::Scene1317 Neverhood::Scene1401 Neverhood::Scene1402 Neverhood::Scene1403 Neverhood::Scene1404 Neverhood::Scene1405 Neverhood::Scene1407 Neverhood::Scene1501 Neverhood::Scene1608 Neverhood::Scene1609 Neverhood::Scene1705 Neverhood::Scene1901 Neverhood::Scene1907 Neverhood::Scene2001 Neverhood::Scene2101 Neverhood::Scene2201 Neverhood::Scene2202 Neverhood::Scene2203 Neverhood::Scene2205 Neverhood::Scene2206 Neverhood::Scene2207 Neverhood::Scene2208 Neverhood::Scene2242 Neverhood::Scene2247 Neverhood::Scene2401 Neverhood::Scene2402 Neverhood::Scene2403 Neverhood::Scene2406 Neverhood::Scene2501 Neverhood::Scene2504 Neverhood::Scene2609 Neverhood::Scene2701 Neverhood::Scene2702 Neverhood::Scene2703 Neverhood::Scene2704 Neverhood::Scene2706 Neverhood::Scene2732 Neverhood::Scene2801 Neverhood::Scene2802 Neverhood::Scene2803 Neverhood::Scene2803Small Neverhood::Scene2804 Neverhood::Scene2805 Neverhood::Scene2806 Neverhood::Scene2807 Neverhood::Scene2808 Neverhood::Scene2809 Neverhood::Scene2810 Neverhood::Scene2812 Neverhood::Scene2822 Neverhood::Scene2901 Neverhood::Scene3009 Neverhood::Scene3010 Neverhood::Scene3011 Neverhood::SmackerScene Neverhood::StaticScene

Public Member Functions

 Scene (NeverhoodEngine *vm, Module *parentModule)
 
void draw () override
 
void addEntity (Entity *entity)
 
bool removeEntity (Entity *entity)
 
void addSurface (const Common::SharedPtr< BaseSurface > &surface)
 
bool removeSurface (const Common::SharedPtr< BaseSurface > &surface)
 
void printSurfaces (Console *con)
 
SpriteaddSprite (Sprite *sprite)
 
void removeSprite (Sprite *sprite)
 
void setSurfacePriority (const Common::SharedPtr< BaseSurface > &surface, int priority)
 
void setSpriteSurfacePriority (Sprite *sprite, int priority)
 
void deleteSprite (Sprite **sprite)
 
BackgroundaddBackground (Background *background)
 
void setBackground (uint32 fileHash)
 
void changeBackground (uint32 fileHash)
 
void setBackgroundY (int16 y)
 
int16 getBackgroundY ()
 
void setPalette (uint32 fileHash=0)
 
void setHitRects (uint32 id)
 
SpriteinsertStaticSprite (uint32 fileHash, int surfacePriority)
 
void insertScreenMouse (uint32 fileHash, const NRect *mouseRect=NULL)
 
void insertPuzzleMouse (uint32 fileHash, int16 x1, int16 x2)
 
void insertNavigationMouse (uint32 fileHash, int type)
 
void showMouse (bool visible)
 
void changeMouseCursor (uint32 fileHash)
 
SmackerPlayeraddSmackerPlayer (SmackerPlayer *smackerPlayer)
 
void update ()
 
void leaveScene (uint32 result)
 
HitRectfindHitRectAtPos (int16 x, int16 y)
 
void addCollisionSprite (Sprite *sprite)
 
void removeCollisionSprite (Sprite *sprite)
 
void checkCollision (Sprite *sprite, uint16 flags, int messageNum, uint32 messageParam)
 
template<class T >
void insertKlaymen ()
 
template<class T , class Arg1 >
void insertKlaymen (Arg1 arg1)
 
template<class T , class Arg1 , class Arg2 >
void insertKlaymen (Arg1 arg1, Arg2 arg2)
 
template<class T , class Arg1 , class Arg2 , class Arg3 >
void insertKlaymen (Arg1 arg1, Arg2 arg2, Arg3 arg3)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 >
void insertKlaymen (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
void insertKlaymen (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
void insertKlaymen (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
 
template<class T >
T * insertSprite ()
 
template<class T , class Arg1 >
T * insertSprite (Arg1 arg1)
 
template<class T , class Arg1 , class Arg2 >
T * insertSprite (Arg1 arg1, Arg2 arg2)
 
template<class T , class Arg1 , class Arg2 , class Arg3 >
T * insertSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 >
T * insertSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
T * insertSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
T * insertSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
 
template<class T >
T * createSprite ()
 
template<class T , class Arg1 >
T * createSprite (Arg1 arg1)
 
template<class T , class Arg1 , class Arg2 >
T * createSprite (Arg1 arg1, Arg2 arg2)
 
template<class T , class Arg1 , class Arg2 , class Arg3 >
T * createSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 >
T * createSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
T * createSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5)
 
template<class T , class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
T * createSprite (Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6)
 
uint32 getBackgroundFileHash () const
 
uint32 getCursorFileHash () const
 
- 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
 

Protected Member Functions

uint32 handleMessage (int messageNum, const MessageParam &param, Entity *sender)
 
bool queryPositionSprite (int16 mouseX, int16 mouseY)
 
bool queryPositionRectList (int16 mouseX, int16 mouseY)
 
void setMessageList (uint32 id, bool canAcceptInput=true, bool doConvertMessages=false)
 
void setMessageList (MessageList *messageList, bool canAcceptInput=true, bool doConvertMessages=false)
 
bool setMessageList2 (uint32 id, bool canAcceptInput=true, bool doConvertMessages=false)
 
bool setMessageList2 (MessageList *messageList, bool canAcceptInput=true, bool doConvertMessages=false)
 
bool isMessageList2 (uint32 id)
 
void processMessageList ()
 
void setRectList (uint32 id)
 
void setRectList (RectList *rectList)
 
void clearRectList ()
 
void loadHitRectList ()
 
void cancelMessageList ()
 
void loadDataResource (uint32 fileHash)
 
uint16 convertMessageNum (uint32 messageNum)
 
void setHitRects (HitRectList *hitRects)
 
void clearHitRects ()
 
void clearCollisionSprites ()
 
void insertMouse (Mouse *mouseCursor)
 
- 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

Module_parentModule
 
Common::Array< Entity * > _entities
 
Common::Array< Common::SharedPtr< BaseSurface > > _surfaces
 
Klaymen_klaymen
 
Background_background
 
Palette_palette
 
SmackerPlayer_smackerPlayer
 
MessageList_messageList
 
MessageList_messageList2
 
int _messageListStatus
 
uint _messageListCount
 
uint _messageListIndex
 
bool _doConvertMessages
 
bool _canAcceptInput
 
bool _isKlaymenBusy
 
bool _isMessageListBusy
 
Mouse_mouseCursor
 
NPoint _mouseClickPos
 
bool _mouseClicked
 
bool _mouseCursorWasVisible
 
int _rectType
 
RectList_rectList
 
DataResource _dataResource
 
HitRectList _hitRectList
 
HitRectList_hitRects
 
Common::Array< Sprite * > _collisionSprites
 
uint32 _backgroundFileHash
 
uint32 _cursorFileHash
 
int _messageValue
 
- 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::Entity
Common::String _updateHandlerCbName
 
Common::String _messageHandlerCbName
 

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