Classes | |
struct | Stat |
Typedefs | |
typedef std::map< int, ItemInfo * > | ItemInfos |
typedef std::map< std::string, ItemInfo * > | NamedItemInfos |
Functions | |
void | setStatsList (std::list< ItemDB::Stat * > stats) |
void | load () |
Loads the item data from items.xml . | |
void | unload () |
Frees item data. | |
const ItemInfo & | get (int id) |
const ItemInfo & | get (const std::string &name) |
void | setStatsList (std::list< Stat * > stats) |
typedef std::map<int, ItemInfo*> ItemDB::ItemInfos |
typedef std::map<std::string, ItemInfo*> ItemDB::NamedItemInfos |
const ItemInfo & ItemDB::get | ( | const std::string & | name | ) |
Definition at line 264 of file itemdb.cpp.
const ItemInfo & ItemDB::get | ( | int | id | ) |
Definition at line 247 of file itemdb.cpp.
void ItemDB::load | ( | ) |
void ItemDB::setStatsList | ( | std::list< Stat * > | stats | ) |
void ItemDB::setStatsList | ( | std::list< ItemDB::Stat * > | stats | ) |
Definition at line 61 of file itemdb.cpp.
void ItemDB::unload | ( | ) |