#include <timed_event_mgr.h>
Public Types | |
typedef Common::List< TimedEvent * > | List |
typedef void(* | Callback) (void *) |
Public Member Functions | |
TimedEvent (Callback callback, int interval, void *data=nullptr) | |
Callback | getCallback () const |
void * | getData () |
void | tick () |
Protected Attributes | |
Callback | _callback |
void * | _data |
int | _interval |
int | _current |
A class for handling timed events.
void Ultima::Ultima4::TimedEvent::tick | ( | ) |
Advances the timed event forward a tick. When (current >= interval), then it executes its callback function.