aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/illusions.cpp
diff options
context:
space:
mode:
authorjohndoe1232014-03-08 22:54:34 +0100
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit9a58385088ccf89393f71909eb3c87f3111006fa (patch)
tree90a75596aa4d1a6dfa3beea9671e396b1f0733c0 /engines/illusions/illusions.cpp
parentf99977255cf979568f0d57f977c10ac26f2ff4ac (diff)
downloadscummvm-rg350-9a58385088ccf89393f71909eb3c87f3111006fa.tar.gz
scummvm-rg350-9a58385088ccf89393f71909eb3c87f3111006fa.tar.bz2
scummvm-rg350-9a58385088ccf89393f71909eb3c87f3111006fa.zip
ILLUSIONS: Skeleton engine with detection for BBDOU
Diffstat (limited to 'engines/illusions/illusions.cpp')
-rw-r--r--engines/illusions/illusions.cpp105
1 files changed, 105 insertions, 0 deletions
diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp
new file mode 100644
index 0000000000..da291bae69
--- /dev/null
+++ b/engines/illusions/illusions.cpp
@@ -0,0 +1,105 @@
+/* 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 "illusions/illusions.h"
+
+#include "audio/audiostream.h"
+#include "common/config-manager.h"
+#include "common/debug-channels.h"
+#include "common/error.h"
+#include "common/fs.h"
+#include "common/timer.h"
+#include "engines/util.h"
+#include "graphics/cursorman.h"
+#include "graphics/font.h"
+#include "graphics/fontman.h"
+#include "graphics/palette.h"
+#include "graphics/surface.h"
+
+namespace Illusions {
+
+IllusionsEngine::IllusionsEngine(OSystem *syst, const ADGameDescription *gd) :
+ Engine(syst), _gameDescription(gd) {
+
+ _random = new Common::RandomSource("illusions");
+
+ Engine::syncSoundSettings();
+
+}
+
+IllusionsEngine::~IllusionsEngine() {
+
+ delete _random;
+
+}
+
+Common::Error IllusionsEngine::run() {
+
+ Graphics::PixelFormat pixelFormat16(2, 5, 6, 5, 0, 11, 5, 0, 0);
+ initGraphics(640, 480, true, &pixelFormat16);
+
+ while (!shouldQuit()) {
+ updateEvents();
+ }
+
+ return Common::kNoError;
+}
+
+bool IllusionsEngine::hasFeature(EngineFeature f) const {
+ return
+ false;
+ /*
+ (f == kSupportsRTL) ||
+ (f == kSupportsLoadingDuringRuntime) ||
+ (f == kSupportsSavingDuringRuntime);
+ */
+}
+
+void IllusionsEngine::updateEvents() {
+ Common::Event event;
+
+ while (_eventMan->pollEvent(event)) {
+ switch (event.type) {
+ case Common::EVENT_KEYDOWN:
+ break;
+ case Common::EVENT_KEYUP:
+ break;
+ case Common::EVENT_MOUSEMOVE:
+ break;
+ case Common::EVENT_LBUTTONDOWN:
+ break;
+ case Common::EVENT_LBUTTONUP:
+ break;
+ case Common::EVENT_RBUTTONDOWN:
+ break;
+ case Common::EVENT_RBUTTONUP:
+ break;
+ case Common::EVENT_QUIT:
+ quitGame();
+ break;
+ default:
+ break;
+ }
+ }
+}
+
+} // End of namespace Illusions