aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/neverhood.cpp
diff options
context:
space:
mode:
authorjohndoe1232011-07-03 12:09:48 +0000
committerWillem Jan Palenstijn2013-05-08 20:30:58 +0200
commit44ab81eab83189bfa0693fca564543227d423799 (patch)
treec95d048fa3f8983615703be025d57ee535c93f23 /engines/neverhood/neverhood.cpp
parent3c82668fe4267b34a9e3c7fe88f0d2a0fcfc4c4b (diff)
downloadscummvm-rg350-44ab81eab83189bfa0693fca564543227d423799.tar.gz
scummvm-rg350-44ab81eab83189bfa0693fca564543227d423799.tar.bz2
scummvm-rg350-44ab81eab83189bfa0693fca564543227d423799.zip
NEVERHOOD: Start with the Screen class, also
- Move common headers used in modules to module.h so they don't have to be explicitly #included in each module header - Clean up #includes
Diffstat (limited to 'engines/neverhood/neverhood.cpp')
-rw-r--r--engines/neverhood/neverhood.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/engines/neverhood/neverhood.cpp b/engines/neverhood/neverhood.cpp
index ac89a3e658..4baff5eafa 100644
--- a/engines/neverhood/neverhood.cpp
+++ b/engines/neverhood/neverhood.cpp
@@ -20,28 +20,19 @@
*
*/
-#include "common/events.h"
-#include "common/keyboard.h"
#include "common/file.h"
-#include "common/random.h"
-#include "common/savefile.h"
#include "common/config-manager.h"
-
#include "base/plugins.h"
#include "base/version.h"
-
#include "graphics/cursorman.h"
-
#include "engines/util.h"
-
-#include "audio/mixer.h"
-
#include "neverhood/neverhood.h"
#include "neverhood/blbarchive.h"
#include "neverhood/gamemodule.h"
#include "neverhood/graphics.h"
#include "neverhood/resourceman.h"
#include "neverhood/resource.h"
+#include "neverhood/screen.h"
namespace Neverhood {
@@ -71,6 +62,8 @@ Common::Error NeverhoodEngine::run() {
_isSaveAllowed = false;
+ _screen = new Screen(this);
+
_res = new ResourceMan();
_res->addArchive("a.blb");
_res->addArchive("c.blb");
@@ -179,6 +172,7 @@ Common::Error NeverhoodEngine::run() {
delete _gameModule;
delete _res;
+ delete _screen;
debug("Ok.");