#include <aurore/core/timer.hpp>
◆ onReset()
| void aurore::Timer::onReset |
( |
| ) |
|
|
overridevirtual |
◆ onRewind()
| void aurore::Timer::onRewind |
( |
| ) |
|
|
overridevirtual |
◆ onStart()
| void aurore::Timer::onStart |
( |
| ) |
|
|
overridevirtual |
Called when the ticking becomes active.
Reimplemented from aurore::Ticking.
◆ onUpdate()
| bool aurore::Timer::onUpdate |
( |
Time |
delta | ) |
|
|
overridevirtual |
Executed every frame while the ticking lives. Delta is the time difference in ms between the last frame and the current one. Must return false if the ticking is finished and should be removed from the list of active tickings. The end callback will automatically be called then.
Implements aurore::Ticking.
◆ setDuration()
| void aurore::Timer::setDuration |
( |
Time |
duration | ) |
|
Sets the duration of the timer, in ms. Does not stop or reset it.
◆ start() [1/2]
| void aurore::Timer::start |
( |
| ) |
|
Starts the timer with the already set duration.
◆ start() [2/2]
| void aurore::Timer::start |
( |
Time |
duration | ) |
|
Starts the timer directly with a given duration, in ms.
◆ duration
| Time aurore::Timer::duration = 0 |
|
protected |
◆ progress
| Time aurore::Timer::progress = 0 |
|
protected |
The documentation for this class was generated from the following file: