aboutsummaryrefslogtreecommitdiff
path: root/sword1/eventman.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-01-11 15:47:41 +0000
committerTorbjörn Andersson2004-01-11 15:47:41 +0000
commitcf0a73f913174599c7c28d910ecd87229fd62afd (patch)
tree7eabb5c16878d42f35d811ed13af5ed20b763f92 /sword1/eventman.h
parent563d95c576c817a63ec64302e67b2ee5daa97c6e (diff)
downloadscummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.tar.gz
scummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.tar.bz2
scummvm-rg350-cf0a73f913174599c7c28d910ecd87229fd62afd.zip
Introduced new namespace, Sword1, removing the "Sword" and "Bs" prefixes in
the process, except for SwordEngine. Some minor cleanups along the wa, e.g. stdafx.h already includes <stdio.h>, <stdlib.h> and <math.h> so there shouldn't be any need to do it elsewhere. svn-id: r12320
Diffstat (limited to 'sword1/eventman.h')
-rw-r--r--sword1/eventman.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sword1/eventman.h b/sword1/eventman.h
index 11a1078e25..3df88c74e4 100644
--- a/sword1/eventman.h
+++ b/sword1/eventman.h
@@ -24,6 +24,8 @@
#include "object.h"
+namespace Sword1 {
+
#define TOTAL_EVENT_SLOTS 20
struct GlobalEvent {
@@ -35,12 +37,14 @@ class EventManager {
public:
EventManager(void);
void serviceGlobalEventList(void);
- void checkForEvent(BsObject *compact);
- int fnCheckForEvent(BsObject *cpt, int32 id, int32 pause);
- void fnIssueEvent(BsObject *compact, int32 id, int32 event, int32 delay);
+ void checkForEvent(Object *compact);
+ int fnCheckForEvent(Object *cpt, int32 id, int32 pause);
+ void fnIssueEvent(Object *compact, int32 id, int32 event, int32 delay);
bool eventValid(int32 event);
private:
GlobalEvent _eventPendingList[TOTAL_EVENT_SLOTS];
};
+} // End of namespace Sword1
+
#endif // BSEVENTMAN_H