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

Item information database TmwAthena specific class. More...

Inheritance diagram for ManaServ::ManaServItemDB:
ItemDB

Public Member Functions

 ManaServItemDB ()=default
 
 ~ManaServItemDB () 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 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 190 of file itemdb.h.

Constructor & Destructor Documentation

◆ ManaServItemDB()

ManaServ::ManaServItemDB::ManaServItemDB ( )
default

◆ ~ManaServItemDB()

ManaServ::ManaServItemDB::~ManaServItemDB ( )
inlineoverride

Definition at line 195 of file itemdb.h.

Member Function Documentation

◆ checkItemInfo()

void ManaServ::ManaServItemDB::checkItemInfo ( ItemInfo itemInfo)
overrideprivatevirtual

Checks the items parameters consistency.

Reimplemented from ItemDB.

Definition at line 586 of file itemdb.cpp.

◆ checkStatus()

void ManaServ::ManaServItemDB::checkStatus ( )
overridevirtual

Implements ItemDB.

Definition at line 578 of file itemdb.cpp.

◆ init()

void ManaServ::ManaServItemDB::init ( )
overridevirtual

Implements ItemDB.

Definition at line 465 of file itemdb.cpp.

◆ readItemNode()

void ManaServ::ManaServItemDB::readItemNode ( XML::Node  node,
const std::string &  filename 
)
overridevirtual

Implements ItemDB.

Definition at line 471 of file itemdb.cpp.


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