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

Public Member Functions

 XeenItem ()
 
void clear ()
 
bool empty () const
 
bool isBad () const
 
bool isEquipped () const
 
void synchronize (Common::Serializer &s)
 
ElementalCategory getElementalCategory () const
 
AttributeCategory getAttributeCategory () const
 

Static Public Member Functions

static const char * getItemName (ItemCategory category, uint id)
 
static ElementalCategory getElementalCategory (int material)
 

Public Attributes

int _material
 
uint _id
 
ItemState _state
 
int _frame
 

Constructor & Destructor Documentation

◆ XeenItem()

MM::Xeen::XeenItem::XeenItem ( )

Constructor

Member Function Documentation

◆ getItemName()

static const char* MM::Xeen::XeenItem::getItemName ( ItemCategory  category,
uint  id 
)
static

Return the name of the item

◆ clear()

void MM::Xeen::XeenItem::clear ( )

Clear the data for the item

◆ empty()

bool MM::Xeen::XeenItem::empty ( ) const
inline

Returns true if no item is set

◆ isBad()

bool MM::Xeen::XeenItem::isBad ( ) const
inline

Returns true if the item is cursed or broken

◆ isEquipped()

bool MM::Xeen::XeenItem::isEquipped ( ) const
inline

Returns true for weapons if it's equipped

◆ synchronize()

void MM::Xeen::XeenItem::synchronize ( Common::Serializer s)

Synchronizes the data for the item

◆ getElementalCategory() [1/2]

ElementalCategory MM::Xeen::XeenItem::getElementalCategory ( ) const

Gets the elemental category for the item

◆ getElementalCategory() [2/2]

static ElementalCategory MM::Xeen::XeenItem::getElementalCategory ( int  material)
static

Gets the elemental category for a given material

◆ getAttributeCategory()

AttributeCategory MM::Xeen::XeenItem::getAttributeCategory ( ) const

Gets the attribute category for the item


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