wavelength 1.0.0
Loading...
Searching...
No Matches
waittimetask.h
Go to the documentation of this file.
1#pragma once
2
3#include "os/task.h"
4
10class WaitTimeTask : public Task {
11public:
18 ~WaitTimeTask() override = default;
19
27 explicit WaitTimeTask(float fSeconds);
28
29protected:
36 void OnStart() override;
37
44 void OnPoll() override;
45
46private:
47 float mDuration;
48 float mEndTime;
49};
Task()
Construct an idle task.
Definition task.h:24
~WaitTimeTask() override=default
Destroy the object.
WaitTimeTask(float fSeconds)
Construct a task that waits for a time.
void OnStart() override
Set the end time from the song clock.
void OnPoll() override
Finish the task once the song clock reaches the end time.