diff options
author | Matthew Hoops | 2010-11-30 15:01:26 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-30 15:01:26 +0000 |
commit | 48c209f2daa5b0e60e0abfb1c7f4e44227af4c49 (patch) | |
tree | 4acddcb94123fb4bee2372c6b7f0e5018d4e59a9 /engines/mohawk/myst_stacks/credits.h | |
parent | c6a9cef9fb36fd6a0697f86fd59acc279d8b67a8 (diff) | |
download | scummvm-rg350-48c209f2daa5b0e60e0abfb1c7f4e44227af4c49.tar.gz scummvm-rg350-48c209f2daa5b0e60e0abfb1c7f4e44227af4c49.tar.bz2 scummvm-rg350-48c209f2daa5b0e60e0abfb1c7f4e44227af4c49.zip |
MOHAWK: Split Myst credits code into a separate class
svn-id: r54677
Diffstat (limited to 'engines/mohawk/myst_stacks/credits.h')
-rw-r--r-- | engines/mohawk/myst_stacks/credits.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/engines/mohawk/myst_stacks/credits.h b/engines/mohawk/myst_stacks/credits.h new file mode 100644 index 0000000000..2c4a79f3f8 --- /dev/null +++ b/engines/mohawk/myst_stacks/credits.h @@ -0,0 +1,64 @@ +/* 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. + * + * $URL$ + * $Id$ + * + */ + +#ifndef MYST_SCRIPTS_CREDITS_H +#define MYST_SCRIPTS_CREDITS_H + +#include "common/scummsys.h" +#include "common/util.h" +#include "mohawk/myst_scripts.h" + +namespace Mohawk { + +#define DECLARE_OPCODE(x) void x(uint16 op, uint16 var, uint16 argc, uint16 *argv) + +class MohawkEngine_Myst; +struct MystScriptEntry; + +class MystScriptParser_Credits : public MystScriptParser { +public: + MystScriptParser_Credits(MohawkEngine_Myst *vm); + ~MystScriptParser_Credits(); + + void disablePersistentScripts(); + void runPersistentScripts(); + +private: + void setupOpcodes(); + + DECLARE_OPCODE(o_quit); + DECLARE_OPCODE(o_runCredits); + + bool _creditsRunning; + uint16 _creditsVar; + uint16 _baseImageId; + uint32 _lastCardTime; +}; + +} // End of namespace Mohawk + +#undef DECLARE_OPCODE + +#endif |