ScummVM API documentation
Wage::Chr Class Reference
Inheritance diagram for Wage::Chr:
Wage::Designed

Public Types

enum  ChrDestination { RETURN_TO_STORAGE = 0, RETURN_TO_RANDOM_SCENE = 1, RETURN_TO_INITIAL_SCENE = 2 }
 
enum  ChrPart { HEAD = 0, CHEST = 1, SIDE = 2 }
 
enum  ChrArmorType {
  HEAD_ARMOR = 0, BODY_ARMOR = 1, SHIELD_ARMOR = 2, MAGIC_ARMOR = 3,
  NUMBER_OF_ARMOR_TYPES = 4
}
 

Public Member Functions

 Chr (Common::String name, Common::SeekableReadStream *data)
 
ObjArraygetWeapons (bool includeMagic)
 
ObjArraygetMagicalObjects ()
 
const char * getDefiniteArticle (bool capitalize)
 
int wearObjIfPossible (Obj *obj)
 
void wearObjs ()
 
void resetState ()
 
bool isWearing (Obj *obj)
 
- Public Member Functions inherited from Wage::Designed
Common::RectgetDesignBounds ()
 
void setDesignBounds (Common::Rect *bounds)
 
Common::String toString () const
 

Public Attributes

int _index
 
int _resourceId
 
Common::String _initialScene
 
int _gender
 
bool _nameProperNoun
 
bool _playerCharacter
 
uint _maximumCarriedObjects
 
int _returnTo
 
int _physicalStrength
 
int _physicalHp
 
int _naturalArmor
 
int _physicalAccuracy
 
int _spiritualStength
 
int _spiritialHp
 
int _resistanceToMagic
 
int _spiritualAccuracy
 
int _runningSpeed
 
uint _rejectsOffers
 
int _followsOpponent
 
Common::String _initialSound
 
Common::String _scoresHitSound
 
Common::String _receivesHitSound
 
Common::String _dyingSound
 
Common::String _nativeWeapon1
 
Common::String _operativeVerb1
 
int _weaponDamage1
 
Common::String _weaponSound1
 
Common::String _nativeWeapon2
 
Common::String _operativeVerb2
 
int _weaponDamage2
 
Common::String _weaponSound2
 
int _winningWeapons
 
int _winningMagic
 
int _winningRun
 
int _winningOffer
 
int _losingWeapons
 
int _losingMagic
 
int _losingRun
 
int _losingOffer
 
Common::String _initialComment
 
Common::String _scoresHitComment
 
Common::String _receivesHitComment
 
Common::String _makesOfferComment
 
Common::String _rejectsOfferComment
 
Common::String _acceptsOfferComment
 
Common::String _dyingWords
 
Scene_currentScene
 
ObjArray _inventory
 
Obj_armor [NUMBER_OF_ARMOR_TYPES]
 
Context _context
 
Obj_weapon1
 
Obj_weapon2
 
- Public Attributes inherited from Wage::Designed
Common::String _name
 
Design_design
 
Common::Rect_designBounds
 
OperandType _classType
 

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