#include <timer.hpp>

Public Member Functions | |
| TimeEvent (TimerCallback callback, void *param, double speed, int lifetime=1, bool autofree=false) | |
| Construct a new TimeEvent object. | |
| ~TimeEvent () | |
| Unregister the object from it's owning Timer object if it has one. | |
Public Attributes | |
| Timer * | manager |
| Pointer to the Timer object that owns it Set once it has been passed to Timer::Register. | |
| TimerCallback | callback |
| Function that is called each tick of the timer. | |
| void * | param |
| Parameter that's passed to the callback function. | |
| double | speed |
| Time between ticks in seconds. | |
| double | lasttime |
| Time that the event last "ticked". | |
| int | lifetime |
| Number of ticks before the Timer will stop calling it. | |
| bool | autofree |
| Whether the owning Timer object should delete the TimeEvent object when it expires. | |
| TimeEvent::TimeEvent | ( | TimerCallback | callback, | |
| void * | param, | |||
| double | speed, | |||
| int | lifetime = 1, |
|||
| bool | autofree = false | |||
| ) |
Construct a new TimeEvent object.
| TimeEvent::~TimeEvent | ( | ) |
Unregister the object from it's owning Timer object if it has one.
Pointer to the Timer object that owns it Set once it has been passed to Timer::Register.
Function that is called each tick of the timer.
| void* TimeEvent::param |
Parameter that's passed to the callback function.
| double TimeEvent::speed |
Time between ticks in seconds.
| double TimeEvent::lasttime |
Time that the event last "ticked".
Number of ticks before the Timer will stop calling it.
| bool TimeEvent::autofree |
1.5.7.1