#include <character.h>
Public Member Functions | |
| Character () | |
| void | synchronize (Common::Serializer &s) |
| bool | isWeaponEquipped () const |
| bool | isArmourEquipped () const |
| bool | isSpellEquipped () const |
| Weapon * | equippedWeapon () const |
| Armour * | equippedArmour () const |
| Spell * | equippedSpell () const |
| void | removeWeapon () |
| void | removeArmour () |
| void | removeSpell () |
| uint | getLevel () const |
Public Attributes | |
| Common::String | _name |
| uint | _race |
| Sex | _sex |
| uint | _class |
| uint | _strength |
| uint | _agility |
| uint | _stamina |
| uint | _charisma |
| uint | _wisdom |
| uint | _intelligence |
| uint | _hitPoints |
| uint | _experience |
| uint | _food |
| uint | _coins |
| int | _equippedWeapon |
| int | _equippedArmour |
| int | _equippedSpell |
| ItemArray< Weapon * > | _weapons |
| ItemArray< Armour * > | _armour |
| ItemArray< Spell * > | _spells |
Implements the data for a playable character within the game
|
inline |
Constructor
| void Ultima::Shared::Character::synchronize | ( | Common::Serializer & | s | ) |
Handles loading and saving games
|
inline |
Returns true if a weapon is equipped
|
inline |
Returns true if armor is equipped
|
inline |
Returns true if a spell is equipped
|
inline |
Return the equipped weapon
|
inline |
Return the equipped armor
|
inline |
Return the equipped spell
|
inline |
Removes any equipped weapon
|
inline |
Removes any eqipped armor
|
inline |
Remove any equipped spell
|
inline |
Gets the character's experience level