ManaPlus
|
#include "resources/db/itemdb.h"
#include "const/resources/map/map.h"
#include "configuration.h"
#include "enums/resources/spritedirection.h"
#include "fs/virtfs/tools.h"
#include "resources/iteminfo.h"
#include "resources/itemmenuitem.h"
#include "resources/itemtypemapdata.h"
#include "resources/db/itemfielddb.h"
#include "resources/sprite/spritereference.h"
#include "net/net.h"
#include "utils/checkutils.h"
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "utils/foreach.h"
#include "utils/itemxmlutils.h"
#include "utils/stdmove.h"
#include "utils/stringmap.h"
#include "debug.h"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{itemdb.cpp} | |
Macros | |
#define | CHECK_PARAM(param) |
Functions | |
static void | loadSpriteRef (ItemInfo *const itemInfo, const xmlNodePtr node) |
static void | loadSoundRef (ItemInfo *const itemInfo, const xmlNodePtr node) |
static void | loadFloorSprite (SpriteDisplay &display, const xmlNode *const node) |
static void | loadReplaceSprite (ItemInfo *const itemInfo, const xmlNodePtr replaceNode) |
static void | loadOrderSprite (ItemInfo *const itemInfo, const xmlNodePtr node, const bool drawAfter) |
static int | parseSpriteName (const std::string &name) |
static int | parseDirectionName (const std::string &name) |
static ItemDbTypeT | itemTypeFromString (const std::string &name) |
static std::string | useButtonFromItemType (const ItemDbTypeT &type) |
static std::string | useButton2FromItemType (const ItemDbTypeT &type) |
static void | initStatic () |
static void | loadMenu (xmlNode *const parentNode, std::vector< ItemMenuItem > &menu) |
static bool | getIsEquipment (const ItemDbTypeT type) |
#define CHECK_PARAM | ( | param | ) |
|
static |
Definition at line 235 of file itemdb.cpp.
References ItemDbType::CARD, ItemDbType::EQUIPMENT_AMMO, ItemDbType::EQUIPMENT_ARMS, ItemDbType::EQUIPMENT_CHARM, ItemDbType::EQUIPMENT_FEET, ItemDbType::EQUIPMENT_HEAD, ItemDbType::EQUIPMENT_LEGS, ItemDbType::EQUIPMENT_NECKLACE, ItemDbType::EQUIPMENT_ONE_HAND_WEAPON, ItemDbType::EQUIPMENT_RING, ItemDbType::EQUIPMENT_SHIELD, ItemDbType::EQUIPMENT_TORSO, ItemDbType::EQUIPMENT_TWO_HANDS_WEAPON, ItemDbType::SPRITE_HAIR, ItemDbType::SPRITE_RACE, ItemDbType::UNUSABLE, and ItemDbType::USABLE.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 131 of file itemdb.cpp.
References ItemSoundEvent::DROP, ItemSoundEvent::EQUIP, ItemSoundEvent::HIT, anonymous_namespace{itemdb.cpp}::mConstructed, ItemSoundEvent::MISS, anonymous_namespace{itemdb.cpp}::mSoundNames, ItemSoundEvent::PICKUP, ItemSoundEvent::PUT, ItemSoundEvent::TAKE, ItemSoundEvent::UNEQUIP, ItemSoundEvent::USE, and ItemSoundEvent::USECARD.
Referenced by ItemDB::load().
|
static |
Definition at line 84 of file itemdb.cpp.
References itemTypeMap, Logger::log(), logger, ItemTypeMap::name, ItemTypeMap::type, and ItemDbType::UNUSABLE.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 1003 of file itemdb.cpp.
References for_each_xml_child_node, XML::getProperty(), SpriteDisplay::particles, SpriteReference::sprite, SpriteDisplay::sprites, and SpriteReference::variant.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 212 of file itemdb.cpp.
References for_each_xml_child_node, XML::getProperty(), XML::langProperty(), and EAthena::menu.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 1160 of file itemdb.cpp.
References XML::getProperty(), Actions::itemInfo(), parseDirectionName(), and parseSpriteName().
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 1027 of file itemdb.cpp.
References SpriteDirection::DOWN, SpriteDirection::DOWNLEFT, SpriteDirection::DOWNRIGHT, for_each_xml_child_node, XML::getProperty(), Actions::itemInfo(), parseDirectionName(), parseSpriteName(), SpriteDirection::UP, SpriteDirection::UPLEFT, and SpriteDirection::UPRIGHT.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 980 of file itemdb.cpp.
References XML::getProperty(), Actions::itemInfo(), anonymous_namespace{itemdb.cpp}::mSoundNames, and reportAlways.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 965 of file itemdb.cpp.
References Gender::FEMALE, XML::getProperty(), Actions::itemInfo(), and Gender::MALE.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 903 of file itemdb.cpp.
References SpriteDirection::DOWN, SpriteDirection::DOWNLEFT, SpriteDirection::DOWNRIGHT, Net::getNetworkType(), SpriteDirection::LEFT, SpriteDirection::RIGHT, ServerType::TMWATHENA, SpriteDirection::UP, SpriteDirection::UPLEFT, and SpriteDirection::UPRIGHT.
Referenced by loadOrderSprite(), and loadReplaceSprite().
|
static |
Definition at line 839 of file itemdb.cpp.
Referenced by loadOrderSprite(), loadReplaceSprite(), and ItemDB::loadXmlFile().
|
static |
Definition at line 114 of file itemdb.cpp.
References itemTypeMap, Logger::log(), logger, ItemTypeMap::type, and ItemTypeMap::useButton2.
Referenced by ItemDB::loadXmlFile().
|
static |
Definition at line 97 of file itemdb.cpp.
References itemTypeMap, Logger::log(), logger, ItemTypeMap::type, and ItemTypeMap::useButton.
Referenced by ItemDB::loadXmlFile().