diff options
author | johndoe123 | 2011-10-17 17:58:51 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:39:43 +0200 |
commit | 023c36f2b6f1906c28d246a1b861e2287d85d851 (patch) | |
tree | acfd62f4311c2b421fcdc285ca9bb1f9cfd70872 /engines/neverhood | |
parent | c56c93f085a7861e19a6a0befdbdd69b9837b41f (diff) | |
download | scummvm-rg350-023c36f2b6f1906c28d246a1b861e2287d85d851.tar.gz scummvm-rg350-023c36f2b6f1906c28d246a1b861e2287d85d851.tar.bz2 scummvm-rg350-023c36f2b6f1906c28d246a1b861e2287d85d851.zip |
NEVERHOOD: Add Class437 (still needs renaming, of course :)
Diffstat (limited to 'engines/neverhood')
-rw-r--r-- | engines/neverhood/module2700.cpp | 22 | ||||
-rw-r--r-- | engines/neverhood/module2700.h | 6 |
2 files changed, 23 insertions, 5 deletions
diff --git a/engines/neverhood/module2700.cpp b/engines/neverhood/module2700.cpp index 8c81ddf5e7..096e33546e 100644 --- a/engines/neverhood/module2700.cpp +++ b/engines/neverhood/module2700.cpp @@ -513,6 +513,18 @@ void Module2700::createScene2704(int which, uint32 sceneInfoId, int16 value, con _childObject = new Scene2704(_vm, this, which, sceneInfoId, value, staticSprites, clipRect); } +Class437::Class437(NeverhoodEngine *vm, uint32 fileHash) + : StaticSprite(vm, 0) { + + _spriteResource.load2(fileHash); + createSurface(0, _spriteResource.getDimensions().width, _spriteResource.getDimensions().height); + _x = _spriteResource.getPosition().x; + _y = _spriteResource.getPosition().y; + _drawRect.set(0, 0, _spriteResource.getDimensions().width, _spriteResource.getDimensions().height); + _needRefresh = true; + StaticSprite::update(); +} + Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) : Scene(vm, parentModule, true) { @@ -535,7 +547,7 @@ Scene2701::Scene2701(NeverhoodEngine *vm, Module *parentModule, int which) clipRect.set(0, 0, 640, _sprite1->getDrawRect().x2()); if (sceneInfo->class437Filename) { -//TODO _class437 = insertSprite<Class437>(sceneInfo->class437Filename); + _class437 = insertSprite<Class437>(sceneInfo->class437Filename); _class521 = insertSprite<Class521>(this, 320, 240); //TODO _class517 = insertSprite<Class517>(_class521, _class437->getSurface(), 4); //TODO _class520 = insertSprite<Class520>(_class521, _class437->getSurface(), 4); @@ -643,7 +655,7 @@ Scene2702::Scene2702(NeverhoodEngine *vm, Module *parentModule, int which) insertMouse433(0x08B04180); - //TODO _class437 = insertSprite<Class437>(0x12002035); + _class437 = insertSprite<Class437>(0x12002035); _class521 = insertSprite<Class521>(this, 320, 240); //TODO _class517 = insertSprite<Class517>(_class521, _class437->getSurface(), 4); //TODO insertSprite<Class518>(_class521); @@ -817,13 +829,13 @@ Scene2704::Scene2704(NeverhoodEngine *vm, Module *parentModule, int which, uint3 insertMouse433(sceneInfo->mouseCursorFilename); if (sceneInfo->class437Filename) { -//TODO _class437 = insertSprite<Class437>(sceneInfo->class437Filename); + _class437 = insertSprite<Class437>(sceneInfo->class437Filename); _class521 = insertSprite<Class521>(this, 320, 240); //TODO _class517 = insertSprite<Class517>(_class521, _class437->getSurface(), 4); //TODO _class520 = insertSprite<Class520>(_class521, _class437->getSurface(), 4); //TODO _class519 = insertSprite<Class519>(_class521, _class437->getSurface(), 4); } else { -//TODO _class437 = NULL; + _class437 = NULL; //TODO _class517 = NULL; _class521 = insertSprite<Class521>(this, 320, 240); } @@ -921,7 +933,7 @@ Scene2706::Scene2706(NeverhoodEngine *vm, Module *parentModule, int which) insertMouse433(0x08B8C180); -//TODO _class437 = insertSprite<Class437>(0x18808B88); + _class437 = insertSprite<Class437>(0x18808B88); _class521 = insertSprite<Class521>(this, 320, 240); //TODO _class517 = insertSprite<Class517>(_class521, _class437->getSurface(), 4); //TODO _class518 = insertSprite<Class518>(_class521); diff --git a/engines/neverhood/module2700.h b/engines/neverhood/module2700.h index a39b52c296..f1ef3f5727 100644 --- a/engines/neverhood/module2700.h +++ b/engines/neverhood/module2700.h @@ -53,6 +53,11 @@ protected: void createScene2704(int which, uint32 sceneInfoId, int16 value, const uint32 *staticSprites = NULL, const NRect *clipRect = NULL); }; +class Class437 : public StaticSprite { +public: + Class437(NeverhoodEngine *vm, uint32 fileHash); +}; + class Scene2701 : public Scene { public: Scene2701(NeverhoodEngine *vm, Module *parentModule, int which); @@ -98,6 +103,7 @@ public: const uint32 *staticSprites = NULL, const NRect *clipRect = NULL); protected: Class521 *_class521; + Sprite *_class437; int _which1, _which2; NPointArray *_trackPoints; NRectArray *_rectList; |