26 #ifndef SAGA2_TIMERS_H 27 #define SAGA2_TIMERS_H 29 #include "saga2/idtypes.h" 30 #include "saga2/calendar.h" 31 #include "saga2/objects.h" 39 TimerList *fetchTimerList(GameObject *obj);
41 void deleteTimer(Timer *t);
71 static int32 archiveSize() {
72 return sizeof(ObjectID);
98 Timer(
GameObject *o, TimerID timerID, int16 frameInterval) : _obj(o), _id(timerID), _interval(frameInterval), _active(
true) {
99 _alarm.set(_interval);
100 debugC(1, kDebugTimers,
"Creating timer %p for %p (%s)",
101 (
void *)
this, (
void *)o, o->objName());
103 g_vm->_timers.push_back(
this);
112 static int32 archiveSize();
122 int16 getInterval() {
127 return _alarm.check();
130 _alarm.set(_interval);
Definition: savefile.h:54
Definition: memstream.h:194
Definition: objects.h:118
void void void void void debugC(int level, uint32 debugChannels, MSVC_PRINTF const char *s,...) GCC_PRINTF(3
Definition: calendar.h:86