aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/console.cpp
diff options
context:
space:
mode:
authorstrangerke2011-05-25 20:23:02 +0200
committerstrangerke2011-05-25 23:39:10 +0200
commitfe41da83ad8d59062f9188414cf4759d1d42f25a (patch)
treee5f8c8ffcce4cb1492d1d384eea4adb76e354b85 /engines/hugo/console.cpp
parentbe3306a9eb2bff80fc1f9bdc858ac4d759d926e4 (diff)
downloadscummvm-rg350-fe41da83ad8d59062f9188414cf4759d1d42f25a.tar.gz
scummvm-rg350-fe41da83ad8d59062f9188414cf4759d1d42f25a.tar.bz2
scummvm-rg350-fe41da83ad8d59062f9188414cf4759d1d42f25a.zip
HUGO: Add boundaries() to the console. God mode no longer shows boundaries, as in the original
Diffstat (limited to 'engines/hugo/console.cpp')
-rw-r--r--engines/hugo/console.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/hugo/console.cpp b/engines/hugo/console.cpp
index a6acb63852..5c7b5ce412 100644
--- a/engines/hugo/console.cpp
+++ b/engines/hugo/console.cpp
@@ -30,6 +30,7 @@ namespace Hugo {
HugoConsole::HugoConsole(HugoEngine *vm) : GUI::Debugger(), _vm(vm) {
DCmd_Register("listscreens", WRAP_METHOD(HugoConsole, Cmd_listScreens));
DCmd_Register("gotoscreen", WRAP_METHOD(HugoConsole, Cmd_gotoScreen));
+ DCmd_Register("Boundaries", WRAP_METHOD(HugoConsole, Cmd_boundaries));
}
HugoConsole::~HugoConsole() {
@@ -79,4 +80,17 @@ bool HugoConsole::Cmd_listScreens(int argc, const char **argv) {
return true;
}
+/**
+ * This command shows and hides boundaries
+ */
+bool HugoConsole::Cmd_boundaries(int argc, const char **argv) {
+ if (argc != 1) {
+ DebugPrintf("Usage: %s\n", argv[0]);
+ return true;
+ }
+
+ _vm->getGameStatus().showBoundariesFl = !_vm->getGameStatus().showBoundariesFl;
+ return false;
+}
+
} // End of namespace Hugo