From 9b7bb71dd952c85fea54d6526d9b2aaa1bd0498f Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Mon, 8 Oct 2012 07:40:39 +0000 Subject: 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 --- engines/neverhood/module.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/neverhood/module.cpp') 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(); -- cgit v1.2.3