diff options
author | johndoe123 | 2014-03-13 19:55:25 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 9d35f807ecc0cbc7a98a987c02d58d795706ed1f (patch) | |
tree | d92c9e062265b56d2c2797d39f950494b83530ac /engines/illusions/scriptopcodes.h | |
parent | 9696eb9a546891bf7ff601d94f7a8a2ff6730349 (diff) | |
download | scummvm-rg350-9d35f807ecc0cbc7a98a987c02d58d795706ed1f.tar.gz scummvm-rg350-9d35f807ecc0cbc7a98a987c02d58d795706ed1f.tar.bz2 scummvm-rg350-9d35f807ecc0cbc7a98a987c02d58d795706ed1f.zip |
ILLUSIONS: More work on the script system
Diffstat (limited to 'engines/illusions/scriptopcodes.h')
-rw-r--r-- | engines/illusions/scriptopcodes.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/engines/illusions/scriptopcodes.h b/engines/illusions/scriptopcodes.h new file mode 100644 index 0000000000..78b68e5b59 --- /dev/null +++ b/engines/illusions/scriptopcodes.h @@ -0,0 +1,55 @@ +/* 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_SCRIPTOPCODES_H +#define ILLUSIONS_SCRIPTOPCODES_H + +#include "common/func.h" + +namespace Illusions { + +class IllusionsEngine; +class ScriptThread; +struct OpCall; + +typedef Common::Functor2<ScriptThread*, OpCall&, void> ScriptOpcode; + +class ScriptOpcodes { +public: + ScriptOpcodes(IllusionsEngine *vm); + ~ScriptOpcodes(); + void execOpcode(ScriptThread *scriptThread, OpCall &opCall); +protected: + IllusionsEngine *_vm; + ScriptOpcode *_opcodes[256]; + void initOpcodes(); + void freeOpcodes(); + + // Opcodes + void opIncBlockCounter(ScriptThread *scriptThread, OpCall &opCall); + void opDebug126(ScriptThread *scriptThread, OpCall &opCall); + +}; + +} // End of namespace Illusions + +#endif // ILLUSIONS_SCRIPTOPCODES_H |