Hair information database.
More...
#include <hairdb.h>
Hair information database.
Definition at line 33 of file hairdb.h.
◆ HairDB()
◆ ~HairDB()
◆ addHairStyle()
void HairDB::addHairStyle |
( |
int |
id | ) |
|
Add a hair style to the database.
- See also
- ItemDB for the itemInfo.
Definition at line 66 of file hairdb.cpp.
◆ checkStatus()
void HairDB::checkStatus |
( |
| ) |
|
◆ getHairColor()
const std::string & HairDB::getHairColor |
( |
int |
id | ) |
const |
◆ getHairColorIds()
std::vector< int > HairDB::getHairColorIds |
( |
int |
minId, |
|
|
int |
maxId |
|
) |
| const |
Returns the available hair color ids.
- Parameters
-
maxId | the max permited id. If not 0, the hairDb won't return ids > to the parameter. |
Definition at line 107 of file hairdb.cpp.
◆ getHairStyleIds()
std::vector< int > HairDB::getHairStyleIds |
( |
int |
maxId | ) |
const |
Returns the available hair style ids.
- Parameters
-
maxId | the max permited id. If not 0, the hairDb won't return ids > to the parameter. |
Definition at line 94 of file hairdb.cpp.
◆ init()
◆ loadHairColorsNode()
void HairDB::loadHairColorsNode |
( |
XML::Node |
colorsNode | ) |
|
|
private |
Load the hair colors, contained in a <colors> node.
◆ loadHairStylesNode()
void HairDB::loadHairStylesNode |
( |
XML::Node |
stylesNode | ) |
|
|
private |
Load the hair styles, contained in a <styles> node.
Used only by Manaserv. TMW-Athena is considering hairstyles as items.
- See also
- ItemDB
◆ readHairColorNode()
void HairDB::readHairColorNode |
( |
XML::Node |
node, |
|
|
const std::string & |
filename |
|
) |
| |
◆ unload()
Clear the color data.
Definition at line 53 of file hairdb.cpp.
◆ mHairColors
std::map<int, std::string> HairDB::mHairColors |
|
private |
◆ mHairStyles
std::set<int> HairDB::mHairStyles |
|
private |
◆ mLoaded
bool HairDB::mLoaded = false |
|
private |
The documentation for this class was generated from the following files: