21 #ifndef GF_ACTIVITIES_H    22 #define GF_ACTIVITIES_H    28 #include "Portability.h"    34 #ifndef DOXYGEN_SHOULD_SKIP_THIS    63       m_tween.setOrigin(origin);
    72       return m_tween.getOrigin();
    81       m_tween.setTarget(target);
    90       return m_tween.getTarget();
    99       m_tween.setDuration(duration);
   108       return m_tween.getDuration();
   112     void restart() 
override;
   146       m_tween.setOrigin(origin);
   156       return m_tween.getOrigin();
   165       m_tween.setTarget(target);
   175       return m_tween.getTarget();
   184       m_tween.setDuration(duration);
   193       return m_tween.getDuration();
   197     void restart() 
override;
   232       m_tween.setOrigin(origin);
   241       return m_tween.getOrigin();
   250       m_tween.setTarget(target);
   259       return m_tween.getTarget();
   268       m_tween.setDuration(duration);
   277       return m_tween.getDuration();
   281     void restart() 
override;
   313       m_tween.setOrigin(origin);
   322       return m_tween.getOrigin();
   331       m_tween.setTarget(target);
   340       return m_tween.getTarget();
   349       m_tween.setDuration(duration);
   358       return m_tween.getDuration();
   362     void restart() 
override;
   383     void restart() 
override;
   386     std::function<void()> m_callback;
   405     void restart() 
override;
   429     void addActivity(
Activity& activity);
   437     void restart() 
override;
   440     std::size_t m_current;
   441     std::vector<Ref<Activity>> m_activities;
   460     void restart() 
override;
   486     void restart() 
override;
   520     void addActivity(
Activity& activity);
   528     void restart() 
override;
   533     std::vector<Ref<Activity>> m_activities;
   537 #ifndef DOXYGEN_SHOULD_SKIP_THIS   542 #endif // GF_ACTIVITIES_H Time getDuration() const noexcept
Get the duration of the activity. 
Definition: Activities.h:276
 
Time getDuration() const noexcept
Get the duration of the activity. 
Definition: Activities.h:107
 
void setOrigin(Vector2f origin)
Change the origin of the activity. 
Definition: Activities.h:231
 
Color4f getTarget() const noexcept
Get the target of the activity. 
Definition: Activities.h:339
 
An activity for a change of position. 
Definition: Activities.h:213
 
void setTarget(float target)
Change the target of the activity. 
Definition: Activities.h:80
 
void setOrigin(float origin)
Change the origin of the activity. 
Definition: Activities.h:62
 
void setDuration(Time duration)
Change the duration of the activity. 
Definition: Activities.h:98
 
constexpr AllType All
Constant to represent "all". 
Definition: Types.h:61
 
ActivityStatus
Status of an activity. 
Definition: Activity.h:38
 
Finish
The type of finish for the activity. 
Definition: Activities.h:503
 
Represents a time value. 
Definition: Time.h:74
 
void setTarget(Color4f target)
Change the target of the activity. 
Definition: Activities.h:330
 
Time getDuration() const noexcept
Get the duration of the activity. 
Definition: Activities.h:192
 
Time getDuration() const noexcept
Get the duration of the activity. 
Definition: Activities.h:357
 
A repeated sequence activity. 
Definition: Activities.h:476
 
An activity to run an activity several times. 
Definition: Activities.h:449
 
void setOrigin(Color4f origin)
Change the origin of the activity. 
Definition: Activities.h:312
 
void setDuration(Time duration)
Change the duration of the activity. 
Definition: Activities.h:183
 
An activity to wait for a predefined duration. 
Definition: Activities.h:395
 
The namespace for gf classes. 
Definition: Action.h:35
 
static float linear(float t)
Linear easing. 
 
void setOrigin(float origin)
Change the origin of the activity. 
Definition: Activities.h:145
 
float angle(Direction direction)
Get an angle from a direction. 
 
Vector2f getTarget() const noexcept
Get the target of the activity. 
Definition: Activities.h:258
 
An activity for a change of angle. 
Definition: Activities.h:127
 
An activity to run several activities in parallel. 
Definition: Activities.h:498
 
A 4D vector. 
Definition: Vector.h:838
 
void setTarget(float target)
Change the target of the activity. 
Definition: Activities.h:164
 
float(*)(float) Easing
An easing function. 
Definition: Easings.h:48
 
void setDuration(Time duration)
Change the duration of the activity. 
Definition: Activities.h:267
 
Vector2f getOrigin() const noexcept
Get the origin of the activity. 
Definition: Activities.h:240
 
void setDuration(Time duration)
Change the duration of the activity. 
Definition: Activities.h:348
 
An activity for a change of color. 
Definition: Activities.h:294
 
An activity to run several activities sequentially. 
Definition: Activities.h:417
 
An activity for a simple float value. 
Definition: Activities.h:44
 
An activity for calling a function once. 
Definition: Activities.h:373
 
General purpose math vector. 
Definition: Vector.h:61
 
float getTarget() const noexcept
Get the target of the activity. 
Definition: Activities.h:89
 
float getOrigin() const noexcept
Get the origin of the activity. 
Definition: Activities.h:71
 
float getOrigin() const noexcept
Get the origin of the activity. 
Definition: Activities.h:155
 
A game activity. 
Definition: Activity.h:62
 
float getTarget() const noexcept
Get the target of the activity. 
Definition: Activities.h:174
 
void setTarget(Vector2f target)
Change the target of the activity. 
Definition: Activities.h:249
 
Color4f getOrigin() const noexcept
Get the origin of the activity. 
Definition: Activities.h:321