From ddf1151a534cf215cc0ffe972163489c319bdc63 Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Fri, 18 Mar 2016 15:40:36 +0100 Subject: ADL: Add new class for second generation ADL --- engines/adl/adl_v2.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 engines/adl/adl_v2.h (limited to 'engines/adl/adl_v2.h') diff --git a/engines/adl/adl_v2.h b/engines/adl/adl_v2.h new file mode 100644 index 0000000000..2e8b0f0671 --- /dev/null +++ b/engines/adl/adl_v2.h @@ -0,0 +1,49 @@ +/* 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 ADL_ADL_V2_H +#define ADL_ADL_V2_H + +#include "adl/adl.h" + +#define IDI_CUR_ROOM 0xfc +#define IDI_VOID_ROOM 0xfd + +namespace Adl { + +class AdlEngine_v2 : public AdlEngine { +public: + virtual ~AdlEngine_v2() { } + +protected: + AdlEngine_v2(OSystem *syst, const AdlGameDescription *gd); + + virtual void setupOpcodeTables(); + + int o2_isItemInRoom(ScriptEnv &e); + + int o2_moveItem(ScriptEnv &e); +}; + +} // End of namespace Adl + +#endif -- cgit v1.2.3