diff options
author | Paul Gilbert | 2016-08-27 15:19:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-27 15:19:25 -0400 |
commit | 552f0cce8e5af656568b4cac2a2fd665f2e8809d (patch) | |
tree | 6f4628411afde902e8632668db487aa22c71f115 /engines/xeen/worldofxeen/worldofxeen.cpp | |
parent | f5ab3d1cd9eb3a884b0ab5d0b154a4f9cccc74b7 (diff) | |
download | scummvm-rg350-552f0cce8e5af656568b4cac2a2fd665f2e8809d.tar.gz scummvm-rg350-552f0cce8e5af656568b4cac2a2fd665f2e8809d.tar.bz2 scummvm-rg350-552f0cce8e5af656568b4cac2a2fd665f2e8809d.zip |
XEEN: Move game cutscene methods into their own classes
Diffstat (limited to 'engines/xeen/worldofxeen/worldofxeen.cpp')
-rw-r--r-- | engines/xeen/worldofxeen/worldofxeen.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/engines/xeen/worldofxeen/worldofxeen.cpp b/engines/xeen/worldofxeen/worldofxeen.cpp new file mode 100644 index 0000000000..86a6ee3da7 --- /dev/null +++ b/engines/xeen/worldofxeen/worldofxeen.cpp @@ -0,0 +1,46 @@ +/* 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 "xeen/worldofxeen/worldofxeen.h" +#include "xeen/worldofxeen/darkside_cutscenes.h" +#include "xeen/worldofxeen/clouds_cutscenes.h" +#include "xeen/sound.h" + +namespace Xeen { + +WorldOfXeenEngine::WorldOfXeenEngine(OSystem *syst, const XeenGameDescription *gameDesc) + : XeenEngine(syst, gameDesc), CloudsCutscenes(this), + DarkSideCutscenes(this) { + _seenDarkSideIntro = false; +} + +void WorldOfXeenEngine::showIntro() { + // **DEBUG** + if (gDebugLevel == 0) + return; + + bool completed = showDarkSideTitle(); + if (!_seenDarkSideIntro && completed) + showDarkSideIntro(); +} + +} // End of namespace Xeen |