From 54c2c0aee6e371f8058c50e0a4113f5b5492169e Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Sun, 18 Mar 2018 15:28:46 +0100 Subject: MUTATIONOFJB: Add support for labels and goto. --- engines/mutationofjb/commands/gotocommand.cpp | 80 ++++++++++++++++++++++++++ engines/mutationofjb/commands/gotocommand.h | 55 ++++++++++++++++++ engines/mutationofjb/commands/labelcommand.cpp | 78 +++++++++++++++++++++++++ engines/mutationofjb/commands/labelcommand.h | 51 ++++++++++++++++ engines/mutationofjb/module.mk | 2 + engines/mutationofjb/script.cpp | 4 ++ engines/mutationofjb/script.h | 16 +++++- 7 files changed, 283 insertions(+), 3 deletions(-) create mode 100644 engines/mutationofjb/commands/gotocommand.cpp create mode 100644 engines/mutationofjb/commands/gotocommand.h create mode 100644 engines/mutationofjb/commands/labelcommand.cpp create mode 100644 engines/mutationofjb/commands/labelcommand.h (limited to 'engines/mutationofjb') diff --git a/engines/mutationofjb/commands/gotocommand.cpp b/engines/mutationofjb/commands/gotocommand.cpp new file mode 100644 index 0000000000..77c474b653 --- /dev/null +++ b/engines/mutationofjb/commands/gotocommand.cpp @@ -0,0 +1,80 @@ +/* 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 "mutationofjb/commands/gotocommand.h" +#include "mutationofjb/commands/labelcommand.h" +#include "mutationofjb/game.h" +#include "mutationofjb/script.h" + +/* + GOTO