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