aboutsummaryrefslogtreecommitdiff
path: root/sword2/logic.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-02-22 07:37:50 +0000
committerTorbjörn Andersson2005-02-22 07:37:50 +0000
commit9bb141481822a6f1deef4c152e6bbb87d4136a10 (patch)
tree763a23067c5a40043cc1911fc4f643b2d95e9c36 /sword2/logic.cpp
parenta45a0de6581ae7859ff20da58c01bacac8bc612c (diff)
downloadscummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.tar.gz
scummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.tar.bz2
scummvm-rg350-9bb141481822a6f1deef4c152e6bbb87d4136a10.zip
Moved some debugging stuff into the debugger class.
svn-id: r16859
Diffstat (limited to 'sword2/logic.cpp')
-rw-r--r--sword2/logic.cpp30
1 files changed, 3 insertions, 27 deletions
diff --git a/sword2/logic.cpp b/sword2/logic.cpp
index 2472c7f726..1ab10ba8d1 100644
--- a/sword2/logic.cpp
+++ b/sword2/logic.cpp
@@ -21,7 +21,6 @@
#include "common/stdafx.h"
#include "sword2/sword2.h"
#include "sword2/defs.h"
-#include "sword2/console.h"
#include "sword2/interpreter.h"
#include "sword2/logic.h"
#include "sword2/resman.h"
@@ -30,8 +29,6 @@
#define LEVEL (_curObjectHub->logic_level)
-#define Debug_Printf _vm->_debugger->DebugPrintf
-
namespace Sword2 {
Logic::Logic(Sword2Engine *vm) :
@@ -54,7 +51,7 @@ Logic::~Logic() {
* Do one cycle of the current session.
*/
-int Logic::processSession(void) {
+int Logic::processSession() {
// might change during the session, so take a copy here
uint32 run_list = _currentRunList;
@@ -219,7 +216,7 @@ void Logic::expressChangeSession(uint32 sesh_id) {
* @return The private _currentRunList variable.
*/
-uint32 Logic::getRunList(void) {
+uint32 Logic::getRunList() {
return _currentRunList;
}
@@ -257,28 +254,7 @@ void Logic::logicReplace(uint32 new_script) {
_curObjectHub->script_pc[LEVEL] = new_script & 0xffff;
}
-void Logic::examineRunList(void) {
- uint32 *game_object_list;
- StandardHeader *file_header;
-
- if (_currentRunList) {
- // open and lock in place
- game_object_list = (uint32 *) (_vm->_resman->openResource(_currentRunList) + sizeof(StandardHeader));
-
- Debug_Printf("Runlist number %d\n", _currentRunList);
-
- for (int i = 0; game_object_list[i]; i++) {
- file_header = (StandardHeader *) _vm->_resman->openResource(game_object_list[i]);
- Debug_Printf("%d %s\n", game_object_list[i], file_header->name);
- _vm->_resman->closeResource(game_object_list[i]);
- }
-
- _vm->_resman->closeResource(_currentRunList);
- } else
- Debug_Printf("No run list set\n");
-}
-
-void Logic::resetKillList(void) {
+void Logic::resetKillList() {
_kills = 0;
}