Mana
Loading...
Searching...
No Matches
Classes | Functions
Attributes Namespace Reference

Classes

struct  Attribute
 

Functions

unsigned int getCreationPoints ()
 Give the attribute points given to a character at its creation.
 
unsigned int getAttributeMinimum ()
 Give the minimum attribute point possible at character's creation.
 
unsigned int getAttributeMaximum ()
 Give the maximum attribute point possible at character's creation.
 
std::vector< std::string > & getLabels ()
 Returns the list of base attribute labels.
 
int getPlayerInfoIdFromAttrId (int attrId)
 Give back the corresponding playerinfo Id from the attribute id defined in the xml file.
 
void init ()
 
void readAttributeNode (XML::Node node, const std::string &filename)
 Read attribute node.
 
void readPointsNode (XML::Node node, const std::string &filename)
 Read points node.
 
void checkStatus ()
 Check if all the data loaded by readPointsNode and readAttributeNode is ok.
 
void unload ()
 
void informItemDB ()
 
void informStatusWindow ()
 

Function Documentation

◆ checkStatus()

void Attributes::checkStatus ( )

Check if all the data loaded by readPointsNode and readAttributeNode is ok.

Definition at line 331 of file attributes.cpp.

◆ getAttributeMaximum()

unsigned int Attributes::getAttributeMaximum ( )

Give the maximum attribute point possible at character's creation.

Definition at line 80 of file attributes.cpp.

◆ getAttributeMinimum()

unsigned int Attributes::getAttributeMinimum ( )

Give the minimum attribute point possible at character's creation.

Definition at line 75 of file attributes.cpp.

◆ getCreationPoints()

unsigned int Attributes::getCreationPoints ( )

Give the attribute points given to a character at its creation.

Definition at line 70 of file attributes.cpp.

◆ getLabels()

std::vector< std::string > & Attributes::getLabels ( )

Returns the list of base attribute labels.

Definition at line 85 of file attributes.cpp.

◆ getPlayerInfoIdFromAttrId()

int Attributes::getPlayerInfoIdFromAttrId ( int  attrId)

Give back the corresponding playerinfo Id from the attribute id defined in the xml file.

Definition at line 143 of file attributes.cpp.

◆ informItemDB()

void Attributes::informItemDB ( )

Definition at line 363 of file attributes.cpp.

◆ informStatusWindow()

void Attributes::informStatusWindow ( )

Definition at line 373 of file attributes.cpp.

◆ init()

void Attributes::init ( )

Definition at line 229 of file attributes.cpp.

◆ readAttributeNode()

void Attributes::readAttributeNode ( XML::Node  node,
const std::string &  filename 
)

Read attribute node.

Definition at line 238 of file attributes.cpp.

◆ readPointsNode()

void Attributes::readPointsNode ( XML::Node  node,
const std::string &  filename 
)

Read points node.

Definition at line 317 of file attributes.cpp.

◆ unload()

void Attributes::unload ( )

Definition at line 358 of file attributes.cpp.