|
enum | TradeResult { TRADE_SUCCESS,
TRADE_NO_ITEM,
TRADE_FULL
} |
|
enum | BuyResult { BUY_SUCCESS,
BUY_NOT_ENOUGH_GOLD,
BUY_BACKPACK_FULL
} |
|
◆ TradeResult
◆ BuyResult
◆ spellNumber()
int MM::MM1::Character::spellNumber |
( |
| ) |
const |
Get the selected combat/noncombat spell number
◆ setSpellNumber()
void MM::MM1::Character::setSpellNumber |
( |
int |
spellNum | ) |
|
◆ synchronize()
Handles save/loading a character
- Parameters
-
portraitNum | Override for portrait to use for a character being loaded from the game defaults |
◆ operator==()
bool MM::MM1::Character::operator== |
( |
const Character & |
rhs | ) |
const |
|
inline |
◆ clear()
void MM::MM1::Character::clear |
( |
| ) |
|
◆ gatherGold()
void MM::MM1::Character::gatherGold |
( |
| ) |
|
Gathers the party gold into the character
◆ updateAttributes()
void MM::MM1::Character::updateAttributes |
( |
| ) |
|
Updates the current attribute levels to match their base values
◆ updateAC()
void MM::MM1::Character::updateAC |
( |
| ) |
|
Updates the character's AC
◆ updateSP()
void MM::MM1::Character::updateSP |
( |
| ) |
|
Updates the character's SP
◆ getConditionString() [1/2]
Gets a character's condition string
◆ rest()
void MM::MM1::Character::rest |
( |
| ) |
|
◆ hasItem()
bool MM::MM1::Character::hasItem |
( |
byte |
itemId | ) |
const |
Returns true if the character has a given item
◆ getPerformanceTotal()
size_t MM::MM1::Character::getPerformanceTotal |
( |
| ) |
const |
Gets the numeric value of every property a character has and totals it up to give a stupid 'performance' value for the party at the end of the game
◆ loadFaceSprites()
void MM::MM1::Character::loadFaceSprites |
( |
| ) |
|
Loads the face sprites for the character
◆ statColor()
byte MM::MM1::Character::statColor |
( |
int |
amount, |
|
|
int |
threshold |
|
) |
| const |
Returns the color to use in enhanced mode to represent the color of a character attribute
◆ conditionColor()
byte MM::MM1::Character::conditionColor |
( |
| ) |
const |
Returns the condition color for display
◆ worstCondition()
ConditionEnum MM::MM1::Character::worstCondition |
( |
| ) |
const |
Returns the worst condition, if any, a character currently has.
◆ getConditionString() [2/2]
static Common::String MM::MM1::Character::getConditionString |
( |
ConditionEnum |
cond | ) |
|
|
static |
Returns a string for a given condition
◆ hasBadCondition()
bool MM::MM1::Character::hasBadCondition |
( |
| ) |
const |
|
inline |
Returns true if the character has a fatal condition
The documentation for this struct was generated from the following file: