SHERLOCK: Cleanup for Debugger class

This commit is contained in:
Paul Gilbert 2015-05-09 09:24:22 -04:00
parent 5d41f0f9aa
commit 4950deaf33
2 changed files with 7 additions and 5 deletions

View File

@ -27,13 +27,13 @@ namespace Sherlock {
Debugger::Debugger(SherlockEngine *vm) : GUI::Debugger(), _vm(vm) {
registerCmd("continue", WRAP_METHOD(Debugger, cmdExit));
registerCmd("scene", WRAP_METHOD(Debugger, cmd_scene));
registerCmd("scene", WRAP_METHOD(Debugger, cmdScene));
}
/**
* Converts a decimal or hexadecimal string into a number
*/
static int strToInt(const char *s) {
int Debugger::strToInt(const char *s) {
if (!*s)
// No string at all
return 0;
@ -52,7 +52,7 @@ static int strToInt(const char *s) {
/**
* Switch to another scene
*/
bool Debugger::cmd_scene(int argc, const char **argv) {
bool Debugger::cmdScene(int argc, const char **argv) {
if (argc != 2) {
debugPrintf("Format: scene <room>\n");
return true;

View File

@ -33,8 +33,10 @@ class SherlockEngine;
class Debugger : public GUI::Debugger {
private:
SherlockEngine *_vm;
protected:
bool cmd_scene(int argc, const char **argv);
int strToInt(const char *s);
bool cmdScene(int argc, const char **argv);
public:
Debugger(SherlockEngine *vm);
virtual ~Debugger() {}