ScummVM API documentation
MM::Xeen::BlacksmithWares Class Reference

Public Member Functions

 BlacksmithWares ()
 
void clear ()
 
void regenerate ()
 
BlacksmithItems & operator[] (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()

MM::Xeen::BlacksmithWares::BlacksmithWares ( )
inline

Constructor

Member Function Documentation

◆ clear()

void MM::Xeen::BlacksmithWares::clear ( )

Clear all current blacksmith wares

◆ regenerate()

void MM::Xeen::BlacksmithWares::regenerate ( )

Generates a fresh set of blacksmith inventories

◆ operator[]()

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

Gets the items for a particular item category

◆ blackData2CharData()

void MM::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 MM::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 MM::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: