22 #ifndef ILLUSIONS_UPDATEFUNCTIONS_H 23 #define ILLUSIONS_UPDATEFUNCTIONS_H 25 #include "common/func.h" 26 #include "common/list.h" 42 UpdateFunctionCallback *_callback;
43 UpdateFunction() : _priority(0), _sceneId(0), _flags(0), _callback(0) {}
45 void terminate() { _flags |= 1; }
46 int run() {
return (*_callback)(_flags); }
53 void add(
int priority, uint32 sceneId, UpdateFunctionCallback *callback);
55 void terminateByScene(uint32 sceneId);
64 return updateFunction->_priority > _priority;
69 uint32 _lastTimerUpdateTime;
74 #endif // ILLUSIONS_UPDATEFUNCTIONS_H
Definition: updatefunctions.h:37
Definition: updatefunctions.h:60
Definition: list_intern.h:51
Definition: updatefunctions.h:49