|
static int | statColor (int amount, int threshold) |
|
◆ Character() [1/2]
MM::Xeen::Character::Character |
( |
| ) |
|
◆ Character() [2/2]
MM::Xeen::Character::Character |
( |
const Character & |
src | ) |
|
◆ operator==()
bool MM::Xeen::Character::operator== |
( |
const Character & |
src | ) |
const |
|
inline |
◆ operator!=()
bool MM::Xeen::Character::operator!= |
( |
const Character & |
src | ) |
const |
|
inline |
◆ clear()
void MM::Xeen::Character::clear |
( |
| ) |
|
Clears the data for a character
◆ operator=()
◆ synchronize()
Synchronizes data for the character
◆ worstCondition()
Condition MM::Xeen::Character::worstCondition |
( |
| ) |
const |
Returns the worst condition the character is suffering from
◆ isDisabled()
bool MM::Xeen::Character::isDisabled |
( |
| ) |
const |
Returns whether the given character has a disabling condition, but still alive
◆ isDisabledOrDead()
bool MM::Xeen::Character::isDisabledOrDead |
( |
| ) |
const |
Returns whether the given character has a disabling condition, or is dead
◆ isDead()
bool MM::Xeen::Character::isDead |
( |
| ) |
const |
Returns whether the given character has a dead condition
◆ getAge()
int MM::Xeen::Character::getAge |
( |
bool |
ignoreTemp = false | ) |
const |
◆ getMaxHP()
int MM::Xeen::Character::getMaxHP |
( |
| ) |
const |
Gets the maximum hit points for a character
◆ getMaxSP()
int MM::Xeen::Character::getMaxSP |
( |
| ) |
const |
Gets the maximum spell points for a character
◆ getStat()
uint MM::Xeen::Character::getStat |
( |
Attribute |
attrib, |
|
|
bool |
baseOnly = false |
|
) |
| const |
Get the effective value of a given stat for the character
◆ statColor()
static int MM::Xeen::Character::statColor |
( |
int |
amount, |
|
|
int |
threshold |
|
) |
| |
|
static |
Return the color number to use for a given stat value in the character info or quick reference dialogs
◆ statBonus()
int MM::Xeen::Character::statBonus |
( |
uint |
statValue | ) |
const |
Returns the bonus the character gets for stats
◆ charSavingThrow()
bool MM::Xeen::Character::charSavingThrow |
( |
DamageType |
attackType | ) |
const |
Returns true if the character passes a saving throw for a given attack type
◆ noActions()
bool MM::Xeen::Character::noActions |
( |
| ) |
|
Returns true if the character is unable to perform any action
◆ setAward()
void MM::Xeen::Character::setAward |
( |
int |
awardId, |
|
|
bool |
value |
|
) |
| |
◆ hasAward()
bool MM::Xeen::Character::hasAward |
( |
int |
awardId | ) |
const |
Returns true if a character has a given award
◆ getAwardCount()
int MM::Xeen::Character::getAwardCount |
( |
int |
awardId | ) |
const |
Returns the number of times a character has received a given award
◆ getArmorClass()
int MM::Xeen::Character::getArmorClass |
( |
bool |
baseOnly = false | ) |
const |
Returns the character's armor class
◆ getThievery()
int MM::Xeen::Character::getThievery |
( |
| ) |
const |
Returns the thievery skill level, adjusted by class and race
◆ itemScan()
int MM::Xeen::Character::itemScan |
( |
int |
itemId | ) |
const |
Scans the character's inventory for the given item
◆ setValue()
void MM::Xeen::Character::setValue |
( |
int |
id, |
|
|
uint |
value |
|
) |
| |
Sets various attributes of a character
◆ guildMember()
bool MM::Xeen::Character::guildMember |
( |
| ) |
const |
Returns true if the character is a member of the current town's guild
◆ experienceToNextLevel()
uint MM::Xeen::Character::experienceToNextLevel |
( |
| ) |
const |
Returns the experience required to reach the next level
◆ nextExperienceLevel()
uint MM::Xeen::Character::nextExperienceLevel |
( |
| ) |
const |
Returns the next level the character will reach
◆ getCurrentExperience()
uint MM::Xeen::Character::getCurrentExperience |
( |
| ) |
const |
Returns the character's current experience
◆ getNumSkills()
int MM::Xeen::Character::getNumSkills |
( |
| ) |
const |
Returns the number of skills the character has
◆ getNumAwards()
int MM::Xeen::Character::getNumAwards |
( |
| ) |
const |
Returns the number of awards the character has
◆ makeItem()
ItemCategory MM::Xeen::Character::makeItem |
( |
int |
p1, |
|
|
int |
itemIndex, |
|
|
int |
p3 |
|
) |
| |
Creates an item and adds it to the inventory
◆ addHitPoints()
void MM::Xeen::Character::addHitPoints |
( |
int |
amount | ) |
|
Add hit points to a character
◆ subtractHitPoints()
void MM::Xeen::Character::subtractHitPoints |
( |
int |
amount | ) |
|
Remove hit points from the character
◆ hasSlayerSword()
bool MM::Xeen::Character::hasSlayerSword |
( |
| ) |
const |
Returns true if the character has the Xeen Slayer Sword
◆ hasMissileWeapon()
bool MM::Xeen::Character::hasMissileWeapon |
( |
| ) |
const |
Returns true if the character has a missile weapon, such as a bow
◆ getSpellsCategory()
SpellsCategory MM::Xeen::Character::getSpellsCategory |
( |
| ) |
const |
Returns the spells category for the character's class
◆ getSpellsExpenseFactor()
int MM::Xeen::Character::getSpellsExpenseFactor |
( |
| ) |
const |
|
inline |
Returns an expense factor for purchasing spells by certain character classes
◆ clearConditions()
void MM::Xeen::Character::clearConditions |
( |
| ) |
|
Clears the character of any currently set conditions
The documentation for this class was generated from the following file: