WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Public Types | Public Member Functions | Public Attributes | List of all members
AttributeManager Class Reference

Public Types

enum  TYPE {
  STRENGTH, AGILITY, CHARISMA, INTELLIGENCE,
  PERCEPTION, ENDURANCE, COURAGE, ENUM_COUNT
}
 

Public Member Functions

 AttributeManager ()
 
void roll (bool isMale)
 
char flip ()
 
void print ()
 
std::string toString (bool showStars=true) const
 
void updateTotal ()
 
TYPE getBestSkill ()
 
char getSkillValue (TYPE skillType) const
 
void setSkillValue (TYPE skillType, char value)
 

Public Attributes

char strength
 
char agility
 
char charisma
 
char intelligence
 
char perception
 
char endurance
 
char courage
 
short int total
 

Member Enumeration Documentation

◆ TYPE

Enumerator
STRENGTH 
AGILITY 
CHARISMA 
INTELLIGENCE 
PERCEPTION 
ENDURANCE 
COURAGE 
ENUM_COUNT 

Constructor & Destructor Documentation

◆ AttributeManager()

AttributeManager::AttributeManager ( )
inline

Member Function Documentation

◆ flip()

char AttributeManager::flip ( )
inline

◆ getBestSkill()

TYPE AttributeManager::getBestSkill ( )
inline

◆ getSkillValue()

char AttributeManager::getSkillValue ( TYPE  skillType) const
inline

◆ print()

void AttributeManager::print ( )
inline

◆ roll()

void AttributeManager::roll ( bool  isMale)
inline

◆ setSkillValue()

void AttributeManager::setSkillValue ( TYPE  skillType,
char  value 
)
inline

◆ toString()

std::string AttributeManager::toString ( bool  showStars = true) const
inline

◆ updateTotal()

void AttributeManager::updateTotal ( )
inline

Member Data Documentation

◆ agility

char AttributeManager::agility

◆ charisma

char AttributeManager::charisma

◆ courage

char AttributeManager::courage

◆ endurance

char AttributeManager::endurance

◆ intelligence

char AttributeManager::intelligence

◆ perception

char AttributeManager::perception

◆ strength

char AttributeManager::strength

◆ total

short int AttributeManager::total

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