aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/debug.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2009-02-27 08:46:39 +0000
committerNicola Mettifogo2009-02-27 08:46:39 +0000
commite17a14001997552dd51c99275b623f5fa6b1b9ca (patch)
tree5f54498fa14787534d59ee0c9f9bc957244b7389 /engines/parallaction/debug.cpp
parentce4d9bc06651418f3d254c3d5d2b1f4711b255ee (diff)
downloadscummvm-rg350-e17a14001997552dd51c99275b623f5fa6b1b9ca.tar.gz
scummvm-rg350-e17a14001997552dd51c99275b623f5fa6b1b9ca.tar.bz2
scummvm-rg350-e17a14001997552dd51c99275b623f5fa6b1b9ca.zip
Improved debugger output.
svn-id: r38927
Diffstat (limited to 'engines/parallaction/debug.cpp')
-rw-r--r--engines/parallaction/debug.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/parallaction/debug.cpp b/engines/parallaction/debug.cpp
index df74c08f5a..5905dbf455 100644
--- a/engines/parallaction/debug.cpp
+++ b/engines/parallaction/debug.cpp
@@ -188,19 +188,22 @@ bool Debugger::Cmd_GfxObjects(int argc, const char **argv) {
const char *objType[] = { "DOOR", "GET", "ANIM" };
- DebugPrintf("+--------------------+-----+-----+-----+-------+-----+--------+--------+\n"
- "| name | x | y | z | layer | f | type | visi |\n"
- "+--------------------+-----+-----+-----+-------+-----+--------+--------+\n");
+ DebugPrintf("+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n"
+ "| name | x | y | w | h | z | layer | f | type |\n"
+ "+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n");
GfxObjArray::iterator b = _vm->_gfx->_sceneObjects.begin();
GfxObjArray::iterator e = _vm->_gfx->_sceneObjects.end();
+ Common::Rect r;
for ( ; b != e; b++) {
GfxObj *obj = *b;
- DebugPrintf("|%-20s|%5i|%5i|%5i|%7i|%5i|%8s|%8x|\n", obj->getName(), obj->x, obj->y, obj->z, obj->layer, obj->frame, objType[obj->type], obj->isVisible() );
+ obj->getRect(obj->frame, r);
+ DebugPrintf("|%-20s|%5i|%5i|%5i|%5i|%5i|%7i|%5i|%8s|\n", obj->getName(), r.left, r.top, r.width(), r.height(),
+ obj->z, obj->layer, obj->frame, objType[obj->type]);
}
- DebugPrintf("+--------------------+-----+-----+-----+-------+-----+--------+--------+\n");
+ DebugPrintf("+--------------------+-----+-----+-----+-----+-----+-------+-----+--------+\n");
return true;
}