|  | Gamedev Framework (gf)
    0.19.0
    A C++17 framework for 2D games | 
An activity for calling a function once. More...
#include <gf/Activities.h>

| Public Member Functions | |
| CallbackActivity (std::function< void()> callback) | |
| Constructor.  More... | |
| ActivityStatus | run (Time time) override | 
| Run the activity.  More... | |
| void | restart () override | 
| Restart the activity.  More... | |
|  Public Member Functions inherited from gf::Activity | |
| virtual | ~Activity () | 
| Destructor.  More... | |
An activity for calling a function once.
| gf::CallbackActivity::CallbackActivity | ( | std::function< void()> | callback | ) | 
Constructor.
| callback | The function to call | 
| 
 | overridevirtual | 
Restart the activity.
Reimplemented from gf::Activity.
| 
 | overridevirtual | 
Run the activity.
| time | The time since the last run | 
Implements gf::Activity.
 1.8.13
 1.8.13