diff options
author | johndoe123 | 2011-07-03 19:26:27 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:30:58 +0200 |
commit | 1285b37b321850a3584ce1bbdba58462e0b8fbe3 (patch) | |
tree | 9a9afbfc48564cae64a7f84215b2a9f0526c3017 /engines/neverhood/scene.h | |
parent | 44ab81eab83189bfa0693fca564543227d423799 (diff) | |
download | scummvm-rg350-1285b37b321850a3584ce1bbdba58462e0b8fbe3.tar.gz scummvm-rg350-1285b37b321850a3584ce1bbdba58462e0b8fbe3.tar.bz2 scummvm-rg350-1285b37b321850a3584ce1bbdba58462e0b8fbe3.zip |
NEVERHOOD: Start with the Background and DirtyBackground classes
- Also make related changes in other code
- Call the game module's draw method in the main loop
- Add some more debug output in resource load functions
Diffstat (limited to 'engines/neverhood/scene.h')
-rw-r--r-- | engines/neverhood/scene.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/neverhood/scene.h b/engines/neverhood/scene.h index e5a3d0ecee..c64c2bfbef 100644 --- a/engines/neverhood/scene.h +++ b/engines/neverhood/scene.h @@ -25,6 +25,7 @@ #include "common/array.h" #include "neverhood/neverhood.h" +#include "neverhood/background.h" #include "neverhood/entity.h" #include "neverhood/graphics.h" #include "neverhood/module.h" @@ -38,6 +39,9 @@ struct MessageListItem { uint32 messageValue; }; +class SmackerPlayer { // DUMMY! +}; + class Scene : public Entity { public: Scene(NeverhoodEngine *vm, Module *parentModule, bool clearHitRects); @@ -50,6 +54,7 @@ public: Sprite *addSprite(Sprite *sprite); void setSurfacePriority(BaseSurface *surface, int priority); void deleteSprite(Sprite **sprite); + Background *addBackground(Background *background); protected: Module *_parentModule; Common::Array<Entity*> _entities; @@ -71,12 +76,12 @@ protected: // TODO 00000090 playerSprite dd ? // TODO 00000094 mouseSprite dd ? Palette *_palette; - // TODO Background *_background; + Background *_background; bool _surfaceFlag; bool _messageListFlag; MessageListItem *_messageList2; int _messageListStatus; - // TODO 000000B0 smackerPlayer dd ? + SmackerPlayer *_smackerPlayer; void (Entity::*_savedUpdateHandlerCb)(); uint32 (Entity::*_savedMessageHandlerCb)(int messageNum, const MessageParam ¶m, Entity *sender); bool _smackerDone; |