ManaPlus
|
Functions | |
void | readBasicAttributes (BeingInfo *const info, xmlNode *const node, const std::string &hoverCursor) |
void | readWalkingAttributes (BeingInfo *const info, xmlNode *const node, const int moreBlockFlags) |
void | readAiAttributes (BeingInfo *const info, xmlNode *const node) |
void | getIncludeFiles (const std::string &dir, StringVect &list, const std::string &ext) |
bool | readObjectNodes (xmlNode *const &spriteNode, SpriteDisplay &display, BeingInfo *const currentInfo, const std::string &dbName) |
void BeingCommon::getIncludeFiles | ( | const std::string & | dir, |
StringVect & | list, | ||
const std::string & | ext | ||
) |
void BeingCommon::readAiAttributes | ( | BeingInfo *const | info, |
xmlNode *const | node | ||
) |
Definition at line 96 of file beingcommon.cpp.
References XML::getProperty(), and Actions::info().
Referenced by HomunculusDB::loadXmlFile(), and MercenaryDB::loadXmlFile().
void BeingCommon::readBasicAttributes | ( | BeingInfo *const | info, |
xmlNode *const | node, | ||
const std::string & | hoverCursor | ||
) |
Definition at line 37 of file beingcommon.cpp.
References XML::getProperty(), and Actions::info().
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().
bool BeingCommon::readObjectNodes | ( | xmlNode *const & | spriteNode, |
SpriteDisplay & | display, | ||
BeingInfo *const | currentInfo, | ||
const std::string & | dbName | ||
) |
Definition at line 140 of file beingcommon.cpp.
References BeingInfo::addAttack(), BeingInfo::addSound(), ItemSoundEvent::DIE, XML::getFloatProperty(), Configuration::getIntValue(), BeingInfo::getName(), XML::getProperty(), ItemSoundEvent::HIT, ItemSoundEvent::HURT, Logger::log(), logger, ItemSoundEvent::MISS, ItemSoundEvent::MOVE, SpriteDisplay::particles, paths, ItemSoundEvent::SIT, ItemSoundEvent::SITTOP, ItemSoundEvent::SPAWN, SpriteReference::sprite, SpriteDisplay::sprites, and SpriteReference::variant.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), and MonsterDB::loadXmlFile().
void BeingCommon::readWalkingAttributes | ( | BeingInfo *const | info, |
xmlNode *const | node, | ||
const int | moreBlockFlags | ||
) |
Definition at line 60 of file beingcommon.cpp.
References BlockMask::AIR, CAST_U8, FOR_EACH, XML::getProperty(), BlockMask::GROUND, Actions::info(), BlockMask::MONSTERWALL, splitToStringVector(), BlockMask::WALL, and BlockMask::WATER.
Referenced by ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), and SkillUnitDb::loadXmlFile().