21 #ifndef GF_ACTIVITIES_H 22 #define GF_ACTIVITIES_H 28 #include "Portability.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 62 m_tween.setOrigin(origin);
71 return m_tween.getOrigin();
80 m_tween.setTarget(target);
89 return m_tween.getTarget();
98 m_tween.setDuration(duration);
107 return m_tween.getDuration();
111 virtual void restart()
override;
145 m_tween.setOrigin(origin);
155 return m_tween.getOrigin();
164 m_tween.setTarget(target);
174 return m_tween.getTarget();
183 m_tween.setDuration(duration);
192 return m_tween.getDuration();
196 virtual void restart()
override;
231 m_tween.setOrigin(origin);
240 return m_tween.getOrigin();
249 m_tween.setTarget(target);
258 return m_tween.getTarget();
267 m_tween.setDuration(duration);
276 return m_tween.getDuration();
280 virtual void restart()
override;
312 m_tween.setOrigin(origin);
321 return m_tween.getOrigin();
330 m_tween.setTarget(target);
339 return m_tween.getTarget();
348 m_tween.setDuration(duration);
357 return m_tween.getDuration();
361 virtual void restart()
override;
382 virtual void restart()
override;
385 std::function<void()> m_callback;
404 virtual void restart()
override;
428 void addActivity(
Activity& activity);
436 virtual void restart()
override;
439 std::size_t m_current;
440 std::vector<Activity*> m_activities;
459 virtual void restart()
override;
485 virtual void restart()
override;
519 void addActivity(
Activity& activity);
527 virtual void restart()
override;
532 std::vector<Activity*> m_activities;
536 #ifndef DOXYGEN_SHOULD_SKIP_THIS 541 #endif // GF_ACTIVITIES_H Time getDuration() const noexcept
Get the duration of the activity.
Definition: Activities.h:275
Time getDuration() const noexcept
Get the duration of the activity.
Definition: Activities.h:106
void setOrigin(Vector2f origin)
Change the origin of the activity.
Definition: Activities.h:230
Color4f getTarget() const noexcept
Get the target of the activity.
Definition: Activities.h:338
An activity for a change of position.
Definition: Activities.h:212
void setTarget(float target)
Change the target of the activity.
Definition: Activities.h:79
void setOrigin(float origin)
Change the origin of the activity.
Definition: Activities.h:61
void setDuration(Time duration)
Change the duration of the activity.
Definition: Activities.h:97
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:502
Represents a time value.
Definition: Time.h:74
void setTarget(Color4f target)
Change the target of the activity.
Definition: Activities.h:329
Time getDuration() const noexcept
Get the duration of the activity.
Definition: Activities.h:191
Time getDuration() const noexcept
Get the duration of the activity.
Definition: Activities.h:356
A repeated sequence activity.
Definition: Activities.h:475
An activity to run an activity several times.
Definition: Activities.h:448
void setOrigin(Color4f origin)
Change the origin of the activity.
Definition: Activities.h:311
void setDuration(Time duration)
Change the duration of the activity.
Definition: Activities.h:182
An activity to wait for a predefined duration.
Definition: Activities.h:394
The namespace for gf classes.
Definition: Action.h:34
static float linear(float t)
Linear easing.
void setOrigin(float origin)
Change the origin of the activity.
Definition: Activities.h:144
float angle(Direction direction)
Get an angle from a direction.
Vector2f getTarget() const noexcept
Get the target of the activity.
Definition: Activities.h:257
An activity for a change of angle.
Definition: Activities.h:126
An activity to run several activities in parallel.
Definition: Activities.h:497
void setTarget(float target)
Change the target of the activity.
Definition: Activities.h:163
float(*)(float) Easing
An easing function.
Definition: Easings.h:48
void setDuration(Time duration)
Change the duration of the activity.
Definition: Activities.h:266
Vector2f getOrigin() const noexcept
Get the origin of the activity.
Definition: Activities.h:239
void setDuration(Time duration)
Change the duration of the activity.
Definition: Activities.h:347
An activity for a change of color.
Definition: Activities.h:293
An activity to run several activities sequentially.
Definition: Activities.h:416
An activity for a simple float value.
Definition: Activities.h:43
An activity for calling a function once.
Definition: Activities.h:372
General purpose math vector.
Definition: Vector.h:61
float getTarget() const noexcept
Get the target of the activity.
Definition: Activities.h:88
float getOrigin() const noexcept
Get the origin of the activity.
Definition: Activities.h:70
float getOrigin() const noexcept
Get the origin of the activity.
Definition: Activities.h:154
A game activity.
Definition: Activity.h:62
float getTarget() const noexcept
Get the target of the activity.
Definition: Activities.h:173
void setTarget(Vector2f target)
Change the target of the activity.
Definition: Activities.h:248
Color4f getOrigin() const noexcept
Get the origin of the activity.
Definition: Activities.h:320