diff options
author | David Turner | 2010-11-07 17:18:59 +0000 |
---|---|---|
committer | David Turner | 2010-11-07 17:18:59 +0000 |
commit | 279a760c5a833b51de3217f8eadda7cf57596532 (patch) | |
tree | aa1f488f57d9b46c75df158443612be6f52b49db /engines/toon/console.h | |
parent | f9d311d1efed7b459f74d6e2ed2abf9c48ea36ba (diff) | |
download | scummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.tar.gz scummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.tar.bz2 scummvm-rg350-279a760c5a833b51de3217f8eadda7cf57596532.zip |
TOON: Added basic debugging console to engine
Since Toon uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
However, the hotkey for this is currently disabled as it causes a segfault. Not sure why.
svn-id: r54123
Diffstat (limited to 'engines/toon/console.h')
-rw-r--r-- | engines/toon/console.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/engines/toon/console.h b/engines/toon/console.h new file mode 100644 index 0000000000..40b556e633 --- /dev/null +++ b/engines/toon/console.h @@ -0,0 +1,50 @@ +/* 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 TOON_CONSOLE_H +#define TOON_CONSOLE_H + +#include "gui/debugger.h" + +namespace Toon { + +class ToonEngine; + +class ToonConsole : public GUI::Debugger { +public: + ToonConsole(ToonEngine *vm); + virtual ~ToonConsole(void); + +protected: + virtual void preEnter(); + virtual void postEnter(); + +private: + ToonEngine *_vm; +}; + +} // End of namespace Toon + +#endif |