ScummVM API documentation
MADS::InventoryObject Class Reference

Public Member Functions

void synchronize (Common::Serializer &s)
 
bool hasQuality (int qualityId) const
 
void setQuality (int qualityId, int qualityValue)
 
int getQuality (int qualityId) const
 

Public Attributes

int _descId
 
int _roomNumber
 
int _article
 
int _vocabCount
 
int _qualitiesCount
 
int syntax
 
struct {
   int   _vocabId
 
   VerbType   _verbType
 
   PrepType   _prepType
 
_vocabList [5]
 
int _qualityId [4]
 
int _qualityValue [4]
 

Member Function Documentation

◆ synchronize()

void MADS::InventoryObject::synchronize ( Common::Serializer s)

Synchronizes the data for a given object

◆ hasQuality()

bool MADS::InventoryObject::hasQuality ( int  qualityId) const

Returns true if the given object has the specified quality

◆ setQuality()

void MADS::InventoryObject::setQuality ( int  qualityId,
int  qualityValue 
)

Sets the quality value for a given quality Id

◆ getQuality()

int MADS::InventoryObject::getQuality ( int  qualityId) const

Gets the quality value for a given quality Id


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