ScummVM API documentation
Ultima::Ultima3::Data::RosterEntry Struct Reference

#include <roster.h>

Public Member Functions

void clear ()
 
bool isEmpty () const
 
bool isInParty () const
 
bool isAlive () const
 
void synchronize (Common::Serializer &s, bool original=false)
 

Public Attributes

char _name [PARTY_NAME_MAX+1] = {}
 
byte _marksAndCards = 0
 
byte _torches = 0
 
byte _partyMember = 0
 
byte _status = 0
 
byte _strength = 0
 
byte _dexterity = 0
 
byte _intelligence = 0
 
byte _wisdom = 0
 
byte _race = 0
 
byte _class = 0
 
byte _sex = 0
 
byte _magicPoints = 0
 
uint16 _hitPoints = 0
 
uint16 _maxHitPoints = 0
 
uint16 _experience = 0
 
byte _foodSubCounter = 0
 
uint16 _food = 0
 
uint16 _gold = 0
 
byte _gems = 0
 
byte _keys = 0
 
byte _powder = 0
 
byte _armourIndex = 0
 
byte _armourOwned [7] = {}
 
byte _weaponIndex = 0
 
byte _weaponOwned [15] = {}
 

Detailed Description

A character record. Numeric fields hold BCD values, exactly as in the original, so the same digits are shown when they're printed as hex.

Member Function Documentation

◆ synchronize()

void Ultima::Ultima3::Data::RosterEntry::synchronize ( Common::Serializer &  s,
bool  original = false 
)

Saves or loads the record

Parameters
originalTrue to use the form it has in the original's files, which has some unused bytes after the name

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