aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-05 20:39:42 -0500
committerPaul Gilbert2016-02-05 20:39:42 -0500
commit93c28c7970e9273b102e9efd8589806f1e849603 (patch)
tree3f1dfe7f911b7809babf66145f654d42cb266877 /engines/titanic/titanic.cpp
parent456e5956e09406dc618ab49518dd83dec0e59641 (diff)
downloadscummvm-rg350-93c28c7970e9273b102e9efd8589806f1e849603.tar.gz
scummvm-rg350-93c28c7970e9273b102e9efd8589806f1e849603.tar.bz2
scummvm-rg350-93c28c7970e9273b102e9efd8589806f1e849603.zip
TITANIC: Initial engine skeleton
Diffstat (limited to 'engines/titanic/titanic.cpp')
-rw-r--r--engines/titanic/titanic.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
new file mode 100644
index 0000000000..88e9fbca5b
--- /dev/null
+++ b/engines/titanic/titanic.cpp
@@ -0,0 +1,58 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#include "common/scummsys.h"
+#include "common/config-manager.h"
+#include "common/debug-channels.h"
+#include "common/events.h"
+#include "engines/util.h"
+#include "graphics/scaler.h"
+#include "graphics/thumbnail.h"
+#include "titanic/titanic.h"
+
+namespace Titanic {
+
+TitanicEngine::TitanicEngine(OSystem *syst, const TitanicGameDescription *gameDesc)
+ : _gameDescription(gameDesc), Engine(syst) {
+}
+
+TitanicEngine::~TitanicEngine() {
+}
+
+void TitanicEngine::initialize() {
+ // Set up debug channels
+ DebugMan.addDebugChannel(kDebugCore, "core", "Core engine debug level");
+ DebugMan.addDebugChannel(kDebugScripts, "scripts", "Game scripts");
+ DebugMan.addDebugChannel(kDebugGraphics, "graphics", "Graphics handling");
+ DebugMan.addDebugChannel(kDebugSound, "sound", "Sound and Music handling");
+
+ initGraphics(320, 200, false);
+
+}
+
+Common::Error TitanicEngine::run() {
+ initialize();
+
+ return Common::kNoError;
+}
+
+} // End of namespace Titanic