diff options
author | johndoe123 | 2012-10-08 07:40:39 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-05-08 20:43:48 +0200 |
commit | 9b7bb71dd952c85fea54d6526d9b2aaa1bd0498f (patch) | |
tree | 15c27da546933428d21efe81b379b863a7422822 /engines/neverhood/module.cpp | |
parent | 15cfb9f787d577c130beb4d0fc486acd5f6af355 (diff) | |
download | scummvm-rg350-9b7bb71dd952c85fea54d6526d9b2aaa1bd0498f.tar.gz scummvm-rg350-9b7bb71dd952c85fea54d6526d9b2aaa1bd0498f.tar.bz2 scummvm-rg350-9b7bb71dd952c85fea54d6526d9b2aaa1bd0498f.zip |
NEVERHOOD: Simplify code and rename things
- Add Module::createStaticScene to simplify creation of static scenes
(and use it in the relevant places)
- Rename Class545 to AsCommonKey and rename related variables
- Rename stuff in Module2200
Diffstat (limited to 'engines/neverhood/module.cpp')
-rw-r--r-- | engines/neverhood/module.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/neverhood/module.cpp b/engines/neverhood/module.cpp index 5be9a6321f..1cd6c0d0b1 100644 --- a/engines/neverhood/module.cpp +++ b/engines/neverhood/module.cpp @@ -23,6 +23,7 @@ #include "neverhood/module.h" #include "neverhood/navigationscene.h" #include "neverhood/smackerscene.h" +#include "neverhood/module1000.h" namespace Neverhood { @@ -93,6 +94,10 @@ void Module::createSmackerScene(const uint32 *fileHashList, bool doubleSurface, _childObject = smackerScene; } +void Module::createStaticScene(uint32 backgroundFileHash, uint32 cursorFileHash) { + _childObject = new StaticScene(_vm, this, backgroundFileHash, cursorFileHash); +} + bool Module::updateChild() { if (_childObject) { _childObject->handleUpdate(); |