24 #ifndef RESOURCES_SPRITE_SPRITEDEF_H
25 #define RESOURCES_SPRITE_SPRITEDEF_H
67 void addAction(
const unsigned hp,
const std::string &name,
79 const int variant_offset,
106 const
std::
string &palettes);
112 const
std::
string &palettes);
118 const
int variant_offset);
126 const
int variant_offset) const;
void loadSprite(const xmlNodePtr spriteNode, const int variant, const std::string &palettes)
const Action * getAction(const std::string &action, const unsigned num) const
Actions::const_iterator ActionsCIter
static SpriteDirection::Type makeSpriteDirection(const std::string &direction)
void includeSprite(const xmlNodePtr includeNode, const int variant)
void loadImageSet(const xmlNodePtr node, const std::string &palettes)
std::map< std::string, ImageSet * > ImageSets
std::set< std::string > mProcessedFiles
const ImageSet * getImageSet(const std::string &imageSetName) const
ImageSets::const_iterator ImageSetCIterator
int calcMemoryLocal() const
std::map< std::string, Action * > ActionMap
unsigned findNumber(const unsigned num) const
void addAction(const unsigned hp, const std::string &name, Action *const action)
int calcMemoryChilds(const int level) const
void loadAnimation(const xmlNodePtr animationNode, Action *const action, const ImageSet *const imageSet, const int variant_offset) const
static SpriteDef * load(const std::string &file, const int variant, const bool prot)
bool addSequence(const int start, const int end, const int delay, const int offsetX, const int offsetY, const int variant_offset, int repeat, const int rand, const ImageSet *const imageSet, Animation *const animation) const
Actions::iterator ActionsIter
Actions::const_iterator ActionsConstIter
void loadAction(const xmlNodePtr node, const int variant_offset)
ImageSets::iterator ImageSetIterator
void substituteAction(const std::string &complete, const std::string &with)
#define A_DELETE_COPY(func)