ScummVM API documentation
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()

Xeen::XeenItem::XeenItem ( )

Constructor

Member Function Documentation

◆ getItemName()

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

Return the name of the item

◆ clear()

void Xeen::XeenItem::clear ( )

Clear the data for the item

◆ empty()

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

Returns true if no item is set

◆ isBad()

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

Returns true if the item is cursed or broken

◆ isEquipped()

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

Returns true for weapons if it's equipped

◆ synchronize()

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

Synchronizes the data for the item

◆ getElementalCategory() [1/2]

ElementalCategory Xeen::XeenItem::getElementalCategory ( ) const

Gets the elemental category for the item

◆ getElementalCategory() [2/2]

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

Gets the elemental category for a given material

◆ getAttributeCategory()

AttributeCategory Xeen::XeenItem::getAttributeCategory ( ) const

Gets the attribute category for the item


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