diff options
author | Max Horn | 2004-11-28 02:04:14 +0000 |
---|---|---|
committer | Max Horn | 2004-11-28 02:04:14 +0000 |
commit | 232ef35298f8105a2d061e8ce2ada0facf6b06e0 (patch) | |
tree | 6272a749b2251de0ed45a86651a12bee147f38ac | |
parent | b03c70f46013e44b731f2366e48227152a3ec79a (diff) | |
download | scummvm-rg350-232ef35298f8105a2d061e8ce2ada0facf6b06e0.tar.gz scummvm-rg350-232ef35298f8105a2d061e8ce2ada0facf6b06e0.tar.bz2 scummvm-rg350-232ef35298f8105a2d061e8ce2ada0facf6b06e0.zip |
Print some camera info
svn-id: r15925
-rw-r--r-- | scumm/debugger.cpp | 9 | ||||
-rw-r--r-- | scumm/debugger.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp index 959d884a31..a362719ad6 100644 --- a/scumm/debugger.cpp +++ b/scumm/debugger.cpp @@ -81,6 +81,7 @@ ScummDebugger::ScummDebugger(ScummEngine *s) DCmd_Register("actors", &ScummDebugger::Cmd_PrintActor); DCmd_Register("box", &ScummDebugger::Cmd_PrintBox); DCmd_Register("matrix", &ScummDebugger::Cmd_PrintBoxMatrix); + DCmd_Register("camera", &ScummDebugger::Cmd_Camera); DCmd_Register("room", &ScummDebugger::Cmd_Room); DCmd_Register("objects", &ScummDebugger::Cmd_PrintObjects); DCmd_Register("object", &ScummDebugger::Cmd_Object); @@ -609,6 +610,14 @@ bool ScummDebugger::Cmd_DebugLevel(int argc, const char **argv) { return true; } +bool ScummDebugger::Cmd_Camera(int argc, const char **argv) { + DebugPrintf("Camera: cur (%d,%d) - dest (%d,%d) - accel (%d,%d) -- last (%d,%d)\n", + _vm->camera._cur.x, _vm->camera._cur.y, _vm->camera._dest.x, _vm->camera._dest.y, + _vm->camera._accel.x, _vm->camera._accel.y, _vm->camera._last.x, _vm->camera._last.y); + + return true; +} + bool ScummDebugger::Cmd_PrintBox(int argc, const char **argv) { int num, i = 0; diff --git a/scumm/debugger.h b/scumm/debugger.h index af9b10157f..d4a19fa0ce 100644 --- a/scumm/debugger.h +++ b/scumm/debugger.h @@ -50,6 +50,7 @@ protected: bool Cmd_PrintBoxMatrix(int argc, const char **argv); bool Cmd_PrintObjects(int argc, const char **argv); bool Cmd_Actor(int argc, const char **argv); + bool Cmd_Camera(int argc, const char **argv); bool Cmd_Object(int argc, const char **argv); bool Cmd_Script(int argc, const char **argv); bool Cmd_PrintScript(int argc, const char **argv); |