![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
An activity to run several activities in parallel. More...
#include <gf/Activities.h>
Public Member Functions | |
ParallelActivity (ActivityFinish finish=ActivityFinish::Any) | |
Constructor. More... | |
void | addActivity (Activity &activity) |
Add an activity to the set. More... | |
void | clear () |
Remove all the activities. 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 several activities in parallel.
gf::ParallelActivity::ParallelActivity | ( | ActivityFinish | finish = ActivityFinish::Any | ) |
Constructor.
finish | The type of finish |
void gf::ParallelActivity::addActivity | ( | Activity & | activity | ) |
Add an activity to the set.
activity | The activity |
void gf::ParallelActivity::clear | ( | ) |
Remove all the activities.
|
overridevirtual |
Restart the activity.
Reimplemented from gf::Activity.
|
overridevirtual |
Run the activity.
time | The time since the last run |
Implements gf::Activity.