49 Animations::const_iterator i = mAnimations.find(direction);
51 if (i == mAnimations.end())
63 i = mAnimations.find(direction);
67 if (i == mAnimations.end())
68 i = mAnimations.begin();
71 return (i == mAnimations.end()) ?
nullptr : i->second;
77 mAnimations[direction] = animation;
84 Animation *
const animation = (*it).second;
85 if (animation ==
nullptr)
102 const Animation *
const animation = (*it).second;
void setLastFrameDelay(const int delay)
void setAnimation(const SpriteDirection::Type direction, Animation *const animation)
Action(const std::string &name)
Animations::const_iterator AnimationCIter
Animations::iterator AnimationIter
const Animation * getAnimation(SpriteDirection::Type direction) const
int calcMemoryChilds(const int level) const
int calcMemoryLocal() const
void setLastFrameDelay(const int delay)
int calcMemory(const int level) const
void delete_all(Container &c)
#define FOR_EACH(type, iter, array)