Item information database generic definition.
More...
#include <itemdb.h>
Item information database generic definition.
Definition at line 72 of file itemdb.h.
◆ ItemDB()
◆ ~ItemDB()
virtual ItemDB::~ItemDB |
( |
| ) |
|
|
virtualdefault |
◆ addItem()
void ItemDB::addItem |
( |
ItemInfo * |
itemInfo | ) |
|
|
protected |
Registers the item to mItemInfos and mNamedItemsInfos.
Definition at line 337 of file itemdb.cpp.
◆ checkItemInfo()
void ItemDB::checkItemInfo |
( |
ItemInfo & |
itemInfo | ) |
|
|
protectedvirtual |
◆ checkStatus()
virtual void ItemDB::checkStatus |
( |
| ) |
|
|
pure virtual |
◆ exists()
bool ItemDB::exists |
( |
int |
id | ) |
const |
◆ get() [1/2]
const ItemInfo & ItemDB::get |
( |
const std::string & |
name | ) |
const |
◆ get() [2/2]
const ItemInfo & ItemDB::get |
( |
int |
id | ) |
const |
◆ init()
virtual void ItemDB::init |
( |
| ) |
|
|
pure virtual |
◆ isLoaded()
bool ItemDB::isLoaded |
( |
| ) |
const |
|
inline |
Tells whether the item database is loaded.
Definition at line 86 of file itemdb.h.
◆ loadCommonRef()
void ItemDB::loadCommonRef |
( |
ItemInfo & |
itemInfo, |
|
|
XML::Node |
node, |
|
|
const std::string & |
filename |
|
) |
| |
|
protected |
Permits to load item definitions which are common for each protocols to avoid code duplication.
Definition at line 281 of file itemdb.cpp.
◆ loadEmptyItemDefinition()
void ItemDB::loadEmptyItemDefinition |
( |
| ) |
|
|
protected |
Loads the empty item definition.
Definition at line 122 of file itemdb.cpp.
◆ loadFloorSprite()
Loads the floor item references contained in a <floor> tag.
Definition at line 211 of file itemdb.cpp.
◆ loadReplacement()
Loads the <replace> tag.
Definition at line 228 of file itemdb.cpp.
◆ loadSoundRef()
Loads the sound references contained in a <sound> tag.
Definition at line 191 of file itemdb.cpp.
◆ loadSpriteRef()
Loads the sprite references contained in a <sprite> tag.
Definition at line 177 of file itemdb.cpp.
◆ readItemNode()
virtual void ItemDB::readItemNode |
( |
XML::Node |
node, |
|
|
const std::string & |
filename |
|
) |
| |
|
pure virtual |
◆ unload()
◆ mItemInfos
std::map<int, ItemInfo *> ItemDB::mItemInfos |
|
private |
◆ mLoaded
bool ItemDB::mLoaded = false |
|
protected |
◆ mNamedItemInfos
std::map<std::string, ItemInfo *> ItemDB::mNamedItemInfos |
|
private |
◆ mUnknown
The documentation for this class was generated from the following files: