|
R-Type
Distributed multiplayer game engine in C++
|
Defines a sequence of frames for an animation. More...
#include <AnimationSet.hpp>

Public Member Functions | |
| AnimationClip () | |
| Default constructor. | |
| AnimationClip (const std::vector< Rectangle > &frames, float duration=0.1f, bool loop=true, const std::string &nextClip="") | |
| Constructor with all parameters. | |
Public Attributes | |
| std::vector< Rectangle > | frames |
| Frame rectangles in the texture. | |
| float | frameDuration |
| Duration per frame in seconds. | |
| bool | loop |
| Whether animation loops. | |
| std::string | nextClip |
| Next clip name after completion (optional) | |
Defines a sequence of frames for an animation.
Contains all frames (as source rectangles), timing information, loop behavior, and optional transition to next animation.
Definition at line 24 of file AnimationSet.hpp.
|
inline |
Default constructor.
Definition at line 33 of file AnimationSet.hpp.
|
inline |
Constructor with all parameters.
| frames | Frame rectangles |
| duration | Duration per frame in seconds |
| loop | Whether animation loops |
| nextClip | Next animation clip name |
Definition at line 42 of file AnimationSet.hpp.
| float ecs::AnimationClip::frameDuration |
Duration per frame in seconds.
Definition at line 26 of file AnimationSet.hpp.
Referenced by ecs::AnimationSystem::update().
| std::vector<Rectangle> ecs::AnimationClip::frames |
Frame rectangles in the texture.
Definition at line 25 of file AnimationSet.hpp.
Referenced by ecs::AnimationSystem::update().
| bool ecs::AnimationClip::loop |
Whether animation loops.
Definition at line 27 of file AnimationSet.hpp.
Referenced by ecs::AnimationSystem::update().
| std::string ecs::AnimationClip::nextClip |
Next clip name after completion (optional)
Definition at line 28 of file AnimationSet.hpp.
Referenced by ecs::AnimationSystem::update().