ScummVM API documentation
Ultima::Shared::Character Class Reference

#include <character.h>

Inheritance diagram for Ultima::Shared::Character:
Ultima::Ultima1::Character

Public Member Functions

 Character ()
 
void synchronize (Common::Serializer &s)
 
bool isWeaponEquipped () const
 
bool isArmourEquipped () const
 
bool isSpellEquipped () const
 
WeaponequippedWeapon () const
 
ArmourequippedArmour () const
 
SpellequippedSpell () 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
 

Detailed Description

Implements the data for a playable character within the game

Constructor & Destructor Documentation

◆ Character()

Ultima::Shared::Character::Character ( )
inline

Constructor

Member Function Documentation

◆ synchronize()

void Ultima::Shared::Character::synchronize ( Common::Serializer s)

Handles loading and saving games

◆ isWeaponEquipped()

bool Ultima::Shared::Character::isWeaponEquipped ( ) const
inline

Returns true if a weapon is equipped

◆ isArmourEquipped()

bool Ultima::Shared::Character::isArmourEquipped ( ) const
inline

Returns true if armor is equipped

◆ isSpellEquipped()

bool Ultima::Shared::Character::isSpellEquipped ( ) const
inline

Returns true if a spell is equipped

◆ equippedWeapon()

Weapon* Ultima::Shared::Character::equippedWeapon ( ) const
inline

Return the equipped weapon

◆ equippedArmour()

Armour* Ultima::Shared::Character::equippedArmour ( ) const
inline

Return the equipped armor

◆ equippedSpell()

Spell* Ultima::Shared::Character::equippedSpell ( ) const
inline

Return the equipped spell

◆ removeWeapon()

void Ultima::Shared::Character::removeWeapon ( )
inline

Removes any equipped weapon

◆ removeArmour()

void Ultima::Shared::Character::removeArmour ( )
inline

Removes any eqipped armor

◆ removeSpell()

void Ultima::Shared::Character::removeSpell ( )
inline

Remove any equipped spell

◆ getLevel()

uint Ultima::Shared::Character::getLevel ( ) const
inline

Gets the character's experience level


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