GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Public Attributes | List of all members
gd::Animation Class Reference

Class representing an animation of a SpriteObject. More...

#include <Animation.h>

Public Member Functions

const gd::StringGetName () const
 Set the name of the animation.
 
void SetName (const gd::String &name_)
 Change the name of the animation.
 
const DirectionGetDirection (std::size_t n) const
 Return the n-th direction.
 
DirectionGetDirection (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
 

Detailed Description

Class representing an animation of a SpriteObject.

See also
SpriteObject
Direction

Member Function Documentation

◆ SetUseMultipleDirections()

void gd::Animation::SetUseMultipleDirections ( bool  enable)
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.

◆ UseMultipleDirections()

bool gd::Animation::UseMultipleDirections ( ) const
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.

Member Data Documentation

◆ useMultipleDirections

bool gd::Animation::useMultipleDirections

deprecated This should be moved to class private members


The documentation for this class was generated from the following files: