Special VTimer that can perform an event at a set interval. Like VTimer, it can be paused or restarted at any point. It can also be looped.
More...
#include <VTimer.h>
|
typedef VTimer | VSUPERCLASS |
| Used to call parent class functions when they are overrided in class.
|
|
Special VTimer that can perform an event at a set interval. Like VTimer, it can be paused or restarted at any point. It can also be looped.
◆ VTimerEvent()
VTimerEvent::VTimerEvent |
( |
unsigned int |
time, |
|
|
std::function< void()> |
eventFunction, |
|
|
bool |
looping = false |
|
) |
| |
- Parameters
-
time | Time in milliseconds for the event to occur. |
eventFunction | The event to call. |
looping | If true, the timeline will start at the beginning once finished, otherwise it will destroy itself. |
◆ GetLooping()
bool VTimerEvent::GetLooping |
( |
| ) |
|
- Returns
- If the timeline is looping or not.
◆ SetLooping()
void VTimerEvent::SetLooping |
( |
bool |
value | ) |
|
- Parameters
-
value | If true, the timeline will start from the beginning instead of being destroyed. |
◆ Update()
virtual float VTimerEvent::Update |
( |
float |
dt | ) |
|
|
virtual |
Updates the time.
- Parameters
-
dt | Delta Time to increment the time by. |
- Returns
- The resulting time once updated.
Reimplemented from VTimer.
The documentation for this class was generated from the following file:
- D:/Development/Libs/Vigilante-Game-Framework/VFrame/VTimer.h