Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
TmwAthena::TaItemDB Class Reference

Item information database TmwAthena specific class. More...

Inheritance diagram for TmwAthena::TaItemDB:
ItemDB

Public Member Functions

 TaItemDB ()=default
 
 ~TaItemDB () override
 
void init () override
 
void readItemNode (XML::Node node, const std::string &filename) override
 
void checkStatus () override
 
- Public Member Functions inherited from ItemDB
 ItemDB ()=default
 
virtual ~ItemDB ()=default
 
virtual void unload ()
 Frees item data.
 
bool isLoaded () const
 Tells whether the item database is loaded.
 
bool exists (int id) const
 
const ItemInfoget (int id) const
 
const ItemInfoget (const std::string &name) const
 

Private Member Functions

void checkHairWeaponsRacesSpecialIds ()
 Check items id specific hard limits and log errors found.
 
void checkItemInfo (ItemInfo &itemInfo) override
 Checks the items parameters consistency.
 

Additional Inherited Members

- Protected Member Functions inherited from ItemDB
void loadCommonRef (ItemInfo &itemInfo, XML::Node node, const std::string &filename)
 Permits to load item definitions which are common for each protocols to avoid code duplication.
 
void addItem (ItemInfo *itemInfo)
 Registers the item to mItemInfos and mNamedItemsInfos.
 
void loadEmptyItemDefinition ()
 Loads the empty item definition.
 
- Protected Attributes inherited from ItemDB
ItemInfomUnknown = nullptr
 
bool mLoaded = false
 

Detailed Description

Item information database TmwAthena specific class.

Definition at line 158 of file itemdb.h.

Constructor & Destructor Documentation

◆ TaItemDB()

TmwAthena::TaItemDB::TaItemDB ( )
default

◆ ~TaItemDB()

TmwAthena::TaItemDB::~TaItemDB ( )
inlineoverride

Definition at line 163 of file itemdb.h.

Member Function Documentation

◆ checkHairWeaponsRacesSpecialIds()

void TmwAthena::TaItemDB::checkHairWeaponsRacesSpecialIds ( )
inlineprivate

Check items id specific hard limits and log errors found.

TODO: Do it.

Definition at line 177 of file itemdb.h.

◆ checkItemInfo()

void TmwAthena::TaItemDB::checkItemInfo ( ItemInfo itemInfo)
overrideprivatevirtual

Checks the items parameters consistency.

Reimplemented from ItemDB.

Definition at line 453 of file itemdb.cpp.

◆ checkStatus()

void TmwAthena::TaItemDB::checkStatus ( )
overridevirtual

Implements ItemDB.

Definition at line 443 of file itemdb.cpp.

◆ init()

void TmwAthena::TaItemDB::init ( )
overridevirtual

Implements ItemDB.

Definition at line 395 of file itemdb.cpp.

◆ readItemNode()

void TmwAthena::TaItemDB::readItemNode ( XML::Node  node,
const std::string &  filename 
)
overridevirtual

Implements ItemDB.

Definition at line 401 of file itemdb.cpp.


The documentation for this class was generated from the following files: