9 #include "GDCore/Extensions/Builtin/SpriteExtension/Animation.h"
12 class InitialInstance;
13 class SerializerElement;
14 class PropertyDescriptor;
15 class ArbitraryResourceWorker;
41 const Animation& GetAnimation(std::size_t nb)
const;
57 bool HasAnimationNamed(
const gd::String &name)
const;
62 void AddAnimation(
const Animation& animation);
67 bool RemoveAnimation(std::size_t nb);
82 void SwapAnimations(std::size_t firstIndex, std::size_t secondIndex);
87 void MoveAnimation(std::size_t oldIndex, std::size_t newIndex);
99 return adaptCollisionMaskAutomatically;
106 adaptCollisionMaskAutomatically = enable;
114 mutable std::vector<Animation> animations;
118 bool adaptCollisionMaskAutomatically;
Class representing an animation of a SpriteObject.
Definition: Animation.h:22
ArbitraryResourceWorker is used so as to inventory resources and sometimes update them.
Definition: ArbitraryResourceWorker.h:44
A generic container that can represent a value ( containing a string, double, bool or int),...
Definition: SerializerElement.h:37
A list of animations, containing directions with images and collision mask.
Definition: SpriteAnimationList.h:30
std::size_t GetAnimationsCount() const
Return the number of animations this object has.
Definition: SpriteAnimationList.h:52
void RemoveAllAnimations()
Remove all animations.
Definition: SpriteAnimationList.h:72
bool AdaptCollisionMaskAutomatically() const
Check if the collision mask adapts automatically to the animation.
Definition: SpriteAnimationList.h:98
const std::vector< Animation > & GetAllAnimations() const
Return a read-only reference to the vector containing all the animation of the object.
Definition: SpriteAnimationList.h:93
bool HasNoAnimations() const
Return true if the object hasn't any animation.
Definition: SpriteAnimationList.h:77
void SetAdaptCollisionMaskAutomatically(bool enable)
Set if the collision mask adapts automatically to the animation.
Definition: SpriteAnimationList.h:105
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24