aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-05 22:11:02 -0500
committerPaul Gilbert2016-02-05 22:11:02 -0500
commit08be41ac52f07bdc859a9a9fd2252b69a757a569 (patch)
treedb6016d883067b5504fb9cdfbb2d81b4f6ffdbfa /engines/titanic/titanic.cpp
parent021c47b0c13bf7a9e467d28cbf127974ebfd9e9d (diff)
downloadscummvm-rg350-08be41ac52f07bdc859a9a9fd2252b69a757a569.tar.gz
scummvm-rg350-08be41ac52f07bdc859a9a9fd2252b69a757a569.tar.bz2
scummvm-rg350-08be41ac52f07bdc859a9a9fd2252b69a757a569.zip
TITANIC: Added skeleton CMainGameWindow class
Diffstat (limited to 'engines/titanic/titanic.cpp')
-rw-r--r--engines/titanic/titanic.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
index f0a70ce191..9230717c8e 100644
--- a/engines/titanic/titanic.cpp
+++ b/engines/titanic/titanic.cpp
@@ -32,10 +32,14 @@
namespace Titanic {
TitanicEngine::TitanicEngine(OSystem *syst, const TitanicGameDescription *gameDesc)
- : _gameDescription(gameDesc), Engine(syst) {
+ : _gameDescription(gameDesc), Engine(syst) {
+ _window = nullptr;
+ _screenManager = nullptr;
}
TitanicEngine::~TitanicEngine() {
+ delete _window;
+ delete _screenManager;
}
void TitanicEngine::initialize() {
@@ -44,6 +48,9 @@ void TitanicEngine::initialize() {
DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling");
DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling");
+
+ _window = new CMainGameWindow(this);
+ _screenManager = new OSScreenManager();
}
Common::Error TitanicEngine::run() {