24 #ifndef RESOURCES_SPRITE_ANIMATEDSPRITE_H
25 #define RESOURCES_SPRITE_ANIMATEDSPRITE_H
140 unsigned int getFrameIndex() const
restrict2
143 unsigned int getFrameTime() const
restrict2
147 #ifdef DEBUG_ANIMATIONS
149 { mSpriteName = name; }
152 {
return mSpriteName; }
161 #ifdef DEBUG_ANIMATIONS
162 std::string mSpriteName;
bool setSpriteDirection(const SpriteDirection::Type direction)
bool updateCurrentAnimation(const unsigned int dt)
void setAlpha(float alpha)
static AnimatedSprite * delayedLoad(const std::string &filename, const int variant)
std::string getIdPath() const
bool updateNumber(const unsigned num)
bool play(const std::string &spriteAction)
unsigned int getCurrentFrame() const
void draw(Graphics *const graphics, const int posX, const int posY) const
static AnimatedSprite * load(const std::string &filename, const int variant)
const void * getHash() const
void drawRescaled(Graphics *const graphics, const int posX, const int posY, const int dx, const int dy) const
static void setEnableCache(const bool b)
void setLastTime(const int time)
bool isTerminated() const
AnimatedSprite(SpriteDef *const sprite)
SpriteDirection::Type mDirection
void setSprite(SpriteDef *const sprite)
unsigned int getFrameCount() const
const Image * getImage() const
void setDelayLoad(const std::string &filename, const int variant)
const Animation * mAnimation
AnimationDelayLoad * mDelayLoad
static AnimatedSprite * clone(const AnimatedSprite *const anim)
bool update(const int time)
int getNumberOfLayers() const
void drawRaw(Graphics *const graphics, const int posX, const int posY) const
#define A_DELETE_COPY(func)
const EmoteSprite * getSprite(const int id, const bool allowNull)