Gamedev Framework (gf)  0.11.0
A C++14 framework for 2D games
Public Member Functions | List of all members
gf::RepeatedSequenceActivity Class Reference

A repeated sequence activity. More...

#include <gf/Activities.h>

Inheritance diagram for gf::RepeatedSequenceActivity:
Inheritance graph

Public Member Functions

 RepeatedSequenceActivity (unsigned repeat=0)
 Constructor. More...
virtual ActivityStatus run (Time time) override
 Run the activity. More...
virtual void restart () override
 Restart the activity. More...
- Public Member Functions inherited from gf::Activity
virtual ~Activity ()
 Destructor. More...

Detailed Description

A repeated sequence activity.

This is a convenient combination of gf::SequenceActivity and gf::RepeatActivity.

Constructor & Destructor Documentation

◆ RepeatedSequenceActivity()

gf::RepeatedSequenceActivity::RepeatedSequenceActivity ( unsigned  repeat = 0)


repeatThe number of time to repeat the activity or 0 for infinite

Member Function Documentation

◆ restart()

virtual void gf::RepeatedSequenceActivity::restart ( )

Restart the activity.

Reimplemented from gf::Activity.

◆ run()

virtual ActivityStatus gf::RepeatedSequenceActivity::run ( Time  time)

Run the activity.

timeThe time since the last run
The status of the activity (running or finished)

Implements gf::Activity.