Represents a single, self-contained animation sequence. More...
#include <Animator.h>

Public Member Functions | |
| Animation (const char *id) | |
| Constructs an Animation with a given ID. | |
| Animation (const char *id, SDL_Point frameSize, const char *texPath, int speed=100, bool isLooping=true, bool isReversible=false) | |
| Constructs and initializes a complete Animation object. | |
Public Attributes | |
| const char * | id |
| Unique identifier for the animation. | |
| int | frames |
| The number of frames in the sprite sheet. | |
| SDL_Texture * | texture |
| The texture containing the animation frames. | |
| int | speed = 100 |
| The delay in milliseconds between frames. | |
| bool | loop |
| Whether the animation should loop upon completion. | |
| bool | reversible = false |
| If true, the animation plays forwards then backwards. | |
Represents a single, self-contained animation sequence.
Constructs an Animation with a given ID.
| id | The unique identifier for this animation. |
| Animator::Animation::Animation | ( | const char * | id, |
| SDL_Point | frameSize, | ||
| const char * | texPath, | ||
| int | speed = 100, |
||
| bool | isLooping = true, |
||
| bool | isReversible = false |
||
| ) |
Constructs and initializes a complete Animation object.
| id | The unique identifier for this animation. |
| frameSize | The dimensions (width, height) of a single frame. |
| texPath | The file path to the sprite sheet texture. |
| speed | The delay in milliseconds between frames. |
| isLooping | Whether the animation should loop. |
| isReversible | Whether the animation should play in reverse after finishing. |
