aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authormd52011-03-20 04:10:29 +0200
committermd52011-03-20 04:10:29 +0200
commit1e68000def927dcb7312dc641caabb01cf241744 (patch)
treeace12e8e0b5cff34562d3a7c0e91713ce7e14fc9 /engines/sci/console.cpp
parent4b371a9e7a73b08454be053134a5751b5f5152b3 (diff)
downloadscummvm-rg350-1e68000def927dcb7312dc641caabb01cf241744.tar.gz
scummvm-rg350-1e68000def927dcb7312dc641caabb01cf241744.tar.bz2
scummvm-rg350-1e68000def927dcb7312dc641caabb01cf241744.zip
SCI: Added a new console command, "animate_list" or "al"
This shows the current animation list, along with object properties, positions and the scripts they belong to
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index fddae530e0..1174bf8528 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -40,6 +40,7 @@
#include "sci/sound/music.h"
#include "sci/sound/drivers/mididriver.h"
#include "sci/sound/drivers/map-mt32-to-gm.h"
+#include "sci/graphics/animate.h"
#include "sci/graphics/cache.h"
#include "sci/graphics/cursor.h"
#include "sci/graphics/screen.h"
@@ -125,6 +126,8 @@ Console::Console(SciEngine *engine) : GUI::Debugger(),
DCmd_Register("undither", WRAP_METHOD(Console, cmdUndither));
DCmd_Register("pic_visualize", WRAP_METHOD(Console, cmdPicVisualize));
DCmd_Register("play_video", WRAP_METHOD(Console, cmdPlayVideo));
+ DCmd_Register("animate_list", WRAP_METHOD(Console, cmdAnimateList));
+ DCmd_Register("al", WRAP_METHOD(Console, cmdAnimateList)); // alias
// Segments
DCmd_Register("segment_table", WRAP_METHOD(Console, cmdPrintSegmentTable));
DCmd_Register("segtable", WRAP_METHOD(Console, cmdPrintSegmentTable)); // alias
@@ -356,6 +359,8 @@ bool Console::cmdHelp(int argc, const char **argv) {
DebugPrintf(" draw_cel - Draws a cel from a view resource\n");
DebugPrintf(" pic_visualize - Enables visualization of the drawing process of EGA pictures\n");
DebugPrintf(" undither - Enable/disable undithering\n");
+ DebugPrintf(" play_video - Plays a SEQ, AVI, VMD, RBT or DUK video\n");
+ DebugPrintf(" animate_object_list / al - Shows the current list of objects in kAnimate's draw list\n");
DebugPrintf("\n");
DebugPrintf("Segments:\n");
DebugPrintf(" segment_table / segtable - Lists all segments\n");
@@ -1576,6 +1581,12 @@ bool Console::cmdPlayVideo(int argc, const char **argv) {
}
}
+bool Console::cmdAnimateList(int argc, const char **argv) {
+ DebugPrintf("Animate list:\n");
+ _engine->_gfxAnimate->printAnimateList(this);
+ return true;
+}
+
bool Console::cmdParseGrammar(int argc, const char **argv) {
DebugPrintf("Parse grammar, in strict GNF:\n");