From c0a3816e1790182b7b4b3854846f01247b00ebbe Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 28 Jan 2005 16:33:14 +0000 Subject: Began what I hope is the final major restructuring of the BS2 engine. In this first step, I have moved all opcode functions into functions.cpp, instead of having them scattered all over the place. To get things to compile again, I had to rewrite the overly complicated sound effects handling. It's much simpler now. The next step will be to move any non-trivial code out of the opcode functions and into the appropriate object. This, I hope, will make it easier to create well-separated objects, instead of the current mess. I also want to tear down the artificial boundary between the main directory and the "driver" directory. We already have a cross-platform layer; there's no need to have yet another one. (Actually, the rewriting of the sound effects code took one first step in this direction.) At the final stage, I'd like to get rid of the "drivers" directory completely, but I'll probably need some help with that if I want to preserve the CVS history of the code. Things will probably be a bit bumpy along the way, but I seem to have reached a point of relative stability again, which is why I'm commiting this now. svn-id: r16668 --- sword2/console.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sword2/console.cpp') diff --git a/sword2/console.cpp b/sword2/console.cpp index 038f986bf0..4c0ab2f550 100644 --- a/sword2/console.cpp +++ b/sword2/console.cpp @@ -26,8 +26,8 @@ #include "sword2/maketext.h" #include "sword2/memory.h" #include "sword2/resman.h" +#include "sword2/sound.h" #include "sword2/driver/d_draw.h" -#include "sword2/driver/d_sound.h" #include "common/debugger.cpp" @@ -206,7 +206,7 @@ bool Debugger::Cmd_ResList(int argc, const char **argv) { } bool Debugger::Cmd_Starts(int argc, const char **argv) { - _vm->_logic->conPrintStartMenu(); + _vm->conPrintStartMenu(); return true; } @@ -218,7 +218,7 @@ bool Debugger::Cmd_Start(int argc, const char **argv) { return true; } - _vm->_logic->conStart(atoi(argv[1])); + _vm->conStart(atoi(argv[1])); _vm->_graphics->setPalette(187, 1, pal, RDPAL_INSTANT); return true; } @@ -466,7 +466,7 @@ bool Debugger::Cmd_AnimTest(int argc, const char **argv) { } // Automatically do "s 32" to run the animation testing start script - _vm->_logic->conStart(32); + _vm->conStart(32); // Same as typing "VAR 912 " at the console varSet(912, atoi(argv[1])); @@ -482,7 +482,7 @@ bool Debugger::Cmd_TextTest(int argc, const char **argv) { } // Automatically do "s 33" to run the text/speech testing start script - _vm->_logic->conStart(33); + _vm->conStart(33); // Same as typing "VAR 1230 " at the console varSet(1230, atoi(argv[1])); @@ -501,7 +501,7 @@ bool Debugger::Cmd_LineTest(int argc, const char **argv) { } // Automatically do "s 33" to run the text/speech testing start script - _vm->_logic->conStart(33); + _vm->conStart(33); // Same as typing "VAR 1230 " at the console varSet(1230, atoi(argv[1])); -- cgit v1.2.3