ScummVM API documentation
Xeen::BlacksmithWares Class Reference

Public Member Functions

 BlacksmithWares ()
 
void clear ()
 
void regenerate ()
 
BlacksmithItemsoperator[] (ItemCategory category)
 
void blackData2CharData (Character &c)
 
void charData2BlackData (Character &c)
 
void synchronize (Common::Serializer &s, int ccNum)
 

Public Attributes

BlacksmithItems _weapons
 
BlacksmithItems _armor
 
BlacksmithItems _accessories
 
BlacksmithItems _misc
 

Constructor & Destructor Documentation

◆ BlacksmithWares()

Xeen::BlacksmithWares::BlacksmithWares ( )
inline

Constructor

Member Function Documentation

◆ clear()

void Xeen::BlacksmithWares::clear ( )

Clear all current blacksmith wares

◆ regenerate()

void Xeen::BlacksmithWares::regenerate ( )

Generates a fresh set of blacksmith inventories

◆ operator[]()

BlacksmithItems& Xeen::BlacksmithWares::operator[] ( ItemCategory  category)

Gets the items for a particular item category

◆ blackData2CharData()

void Xeen::BlacksmithWares::blackData2CharData ( Character c)

Loads a passed temporary character with the item set the given blacksmith has available, so the player can "view" the wares as if it were a standard character's inventory

◆ charData2BlackData()

void Xeen::BlacksmithWares::charData2BlackData ( Character c)

Saves the inventory from the passed temporary character back into the blacksmith storage, so changes in blacksmith inventories remain persistent

◆ synchronize()

void Xeen::BlacksmithWares::synchronize ( Common::Serializer s,
int  ccNum 
)

Synchronizes data for the blacksmith wares


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