aboutsummaryrefslogtreecommitdiff
path: root/sword2/logic.h
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.h
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.h')
-rw-r--r--sword2/logic.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/sword2/logic.h b/sword2/logic.h
index a75d93a4b2..a23aa10a9e 100644
--- a/sword2/logic.h
+++ b/sword2/logic.h
@@ -44,6 +44,11 @@ struct MovieTextObject;
class Sword2Engine;
class Router;
+struct EventUnit {
+ uint32 id;
+ uint32 interact_id;
+};
+
class Logic {
private:
Sword2Engine *_vm;
@@ -62,11 +67,6 @@ private:
// each object has one of these tacked onto the beginning
ObjectHub *_curObjectHub;
- struct EventUnit {
- uint32 id;
- uint32 interact_id;
- };
-
EventUnit _eventList[MAX_events];
// Resource id of the wav to use as lead-in/lead-out from smacker
@@ -148,6 +148,8 @@ public:
Logic(Sword2Engine *vm);
~Logic();
+ EventUnit *getEventList() { return _eventList; }
+
// Point to the global variable data
static uint32 *_scriptVars;
@@ -166,12 +168,12 @@ public:
void sendEvent(uint32 id, uint32 interact_id);
void setPlayerActionEvent(uint32 id, uint32 interact_id);
- void startEvent(void);
- int checkEventWaiting(void);
+ void startEvent();
+ int checkEventWaiting();
void clearEvent(uint32 id);
void killAllIdsEvents(uint32 id);
- uint32 countEvents(void);
+ uint32 countEvents();
struct SyncUnit {
uint32 id;
@@ -181,7 +183,7 @@ public:
SyncUnit _syncList[MAX_syncs];
void clearSyncs(uint32 id);
- int getSync(void);
+ int getSync();
Router *_router;
@@ -304,22 +306,19 @@ public:
int32 fnChangeShadows(int32 *params);
// do one cycle of the current session
- int processSession(void);
+ int processSession();
// cause the logic loop to terminate and drop out
void expressChangeSession(uint32 sesh_id);
- uint32 getRunList(void);
+ uint32 getRunList();
// setup script_id and script_pc in _curObjectHub - called by fnGosub()
void logicUp(uint32 new_script);
void logicReplace(uint32 new_script);
void logicOne(uint32 new_script);
- void examineRunList(void);
- void resetKillList(void);
-
- void printEventList(void);
+ void resetKillList();
};
} // End of namespace Sword2