![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Class representing an animation of a SpriteObject. More...
#include <Animation.h>
Public Member Functions | |
| const gd::String & | GetName () const |
| Set the name of the animation. | |
| void | SetName (const gd::String &name_) |
| Change the name of the animation. | |
| const Direction & | GetDirection (std::size_t n) const |
| Return the n-th direction. | |
| Direction & | GetDirection (std::size_t n) |
| Return the n-th direction. | |
| void | SetDirection (const Direction &direction, std::size_t nb) |
| Change a direction. | |
| void | SetDirectionsCount (std::size_t nb) |
| Change direction count. | |
| std::size_t | GetDirectionsCount () const |
| Get direction count. | |
| bool | HasNoDirections () const |
| Return true if there isn't any direction in the animation. | |
| bool | UseMultipleDirections () const |
| Return true if the animation is composed of more than one direction. More... | |
| void | SetUseMultipleDirections (bool enable) |
| Set if the animation is using more than one direction. More... | |
Public Attributes | |
| bool | useMultipleDirections |
Class representing an animation of a SpriteObject.
|
inline |
Set if the animation is using more than one direction.
By default, an animation is composed of a single direction, and the sprite is rotated.
|
inline |
Return true if the animation is composed of more than one direction.
By default, an animation is composed of a single direction, and the sprite is rotated.
| bool gd::Animation::useMultipleDirections |
deprecated This should be moved to class private members