diff options
author | johndoe123 | 2014-03-24 11:21:44 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 28cb39eb2b48d8c6e80e35ef6e26e02cc209fc0f (patch) | |
tree | 4c41f02644815113d5f15de74b7964c28d29d49b /engines/illusions/specialcode.h | |
parent | a6a4a3dc1cb346afc1f7b0491158d8b00ac063c5 (diff) | |
download | scummvm-rg350-28cb39eb2b48d8c6e80e35ef6e26e02cc209fc0f.tar.gz scummvm-rg350-28cb39eb2b48d8c6e80e35ef6e26e02cc209fc0f.tar.bz2 scummvm-rg350-28cb39eb2b48d8c6e80e35ef6e26e02cc209fc0f.zip |
ILLUSIONS: Start with BBDOU special code
Diffstat (limited to 'engines/illusions/specialcode.h')
-rw-r--r-- | engines/illusions/specialcode.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/engines/illusions/specialcode.h b/engines/illusions/specialcode.h new file mode 100644 index 0000000000..e3ecc8d7c1 --- /dev/null +++ b/engines/illusions/specialcode.h @@ -0,0 +1,57 @@ +/* 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. + * + */ + +#ifndef ILLUSIONS_SPECIALCODE_H +#define ILLUSIONS_SPECIALCODE_H + +#include "illusions/resourcesystem.h" + +namespace Illusions { + +class IllusionsEngine; +struct OpCall; + +class SpecialCodeLoader : public BaseResourceLoader { +public: + SpecialCodeLoader(IllusionsEngine *vm) : _vm(vm) {} + virtual ~SpecialCodeLoader() {} + virtual void load(Resource *resource); + virtual void unload(Resource *resource); + virtual void buildFilename(Resource *resource); + virtual bool isFlag(int flag); +protected: + IllusionsEngine *_vm; +}; + +class SpecialCode { +public: + SpecialCode(IllusionsEngine *vm) : _vm(vm) {} + virtual ~SpecialCode() {} + virtual void init() = 0; + virtual void run(uint32 specialCodeId, OpCall &opCall) = 0; +protected: + IllusionsEngine *_vm; +}; + +} // End of namespace Illusions + +#endif // ILLUSIONS_SPECIALCODE_H |