![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
An activity to run an activity several times. More...
#include <gf/Activities.h>
Public Member Functions | |
RepeatActivity (Activity &activity, int repeat=0) | |
Constructor. More... | |
ActivityStatus | run (Time time) override |
Run the activity. More... | |
void | restart () override |
Restart the activity. More... | |
![]() | |
virtual | ~Activity () |
Destructor. More... | |
virtual ActivityStatus | run (Time time)=0 |
Run the activity. More... | |
virtual void | restart () |
Restart the activity. More... | |
An activity to run an activity several times.
gf::RepeatActivity::RepeatActivity | ( | Activity & | activity, |
int | repeat = 0 |
||
) |
Constructor.
activity | The activity to run serveral times |
repeat | The number of time to repeat the activity or 0 for infinite |
|
overridevirtual |
Restart the activity.
Reimplemented from gf::Activity.
|
overridevirtual |
Run the activity.
time | The time since the last run |
Implements gf::Activity.