22 #ifndef ULTIMA4_EVENTS_TIMED_EVENT_MGR_H 23 #define ULTIMA4_EVENTS_TIMED_EVENT_MGR_H 25 #include "common/list.h" 37 typedef void (*Callback)(
void *);
40 TimedEvent(Callback callback,
int interval,
void *data =
nullptr);
43 Callback getCallback()
const;
94 bool isLocked()
const;
99 void add(TimedEvent::Callback theCallback,
int interval,
void *data =
nullptr);
106 void remove(TimedEvent::Callback theCallback,
void *data =
nullptr);
116 void reset(uint interval);
117 #if defined(IOS_ULTIMA4) 118 bool hasActiveTimer()
const;
127 uint32 _lastTickTime;
128 uint32 _baseInterval;
131 List _deferredRemovals;
132 #if defined(IOS_ULTIMA4) 133 TimedManagerHelper *m_helper;
~TimedEventMgr()
Definition: timed_event_mgr.h:83
Definition: timed_event_mgr.h:33
Definition: timed_event_mgr.h:63
Definition: detection.h:27
Definition: list_intern.h:51