ManaPlus
Namespaces | Typedefs | Functions
itemdb.h File Reference

(986a3bf)

#include "enums/simpletypes/skiperror.h"
#include "utils/stringvector.h"
#include <map>
#include "localconsts.h"

Go to the source code of this file.

Namespaces

 ItemDB
 

Typedefs

typedef std::map< int, ItemInfo * > ItemDB::ItemInfos
 
typedef std::map< std::string, ItemInfo * > ItemDB::NamedItemInfos
 

Functions

void ItemDB::load ()
 
void ItemDB::unload ()
 
void ItemDB::loadXmlFile (const std::string &fileName, int &tagNum, const SkipError skipError)
 
const StringVectItemDB::getTags ()
 
bool ItemDB::exists (const int id)
 
bool ItemDB::exists (const std::string &name)
 
const ItemInfoItemDB::get (const int id)
 
const ItemInfoItemDB::get (const std::string &name)
 
const ItemInfoItemDB::getEmpty ()
 
int ItemDB::getNumOfHairstyles ()
 
const ItemDB::ItemInfosItemDB::getItemInfos ()
 
std::string ItemDB::getNamesStr (const std::vector< int > &parts)
 
int ItemDB::getTagId (const std::string &tagName)