ScummVM API documentation
Xeen::MiscItems Class Reference
Inheritance diagram for Xeen::MiscItems:
Xeen::InventoryItems Common::Array< XeenItem >

Public Member Functions

 MiscItems (Character *character)
 
Common::String getFullDescription (int itemIndex, int displayNum) override
 
- Public Member Functions inherited from Xeen::InventoryItems
 InventoryItems (Character *character, ItemCategory category)
 
void clear ()
 
InventoryItemsoperator= (const InventoryItems &src)
 
bool passRestrictions (int itemId, bool suppressError=false) const
 
Common::String getName (int itemIndex)
 
Common::String getIdentifiedDetails (int itemIndex)
 
bool discardItem (int itemIndex)
 
virtual void equipItem (int itemIndex)
 
void removeItem (int itemIndex)
 
void sort ()
 
virtual void enchantItem (int itemIndex, int amount)
 
bool isFull () const
 
- Public Member Functions inherited from Common::Array< XeenItem >
 Array (size_type count)
 
 Array (size_type count, const XeenItem &value)
 
 Array (const Array< XeenItem > &array)
 
 Array (Array< XeenItem > &&old)
 
 Array (std::initializer_list< XeenItem > list)
 
 Array (const T2 *array, size_type n)
 
void push_back (const XeenItem &element)
 
void push_back (const Array< XeenItem > &array)
 
void pop_back ()
 
const XeenItem * data () const
 
XeenItem * data ()
 
XeenItem & front ()
 
const XeenItem & front () const
 
XeenItem & back ()
 
const XeenItem & back () const
 
void insert_at (size_type idx, const XeenItem &element)
 
void insert_at (size_type idx, const Array< XeenItem > &array)
 
void insert (iterator pos, const XeenItem &element)
 
XeenItem remove_at (size_type idx)
 
XeenItem & operator[] (size_type idx)
 
const XeenItem & operator[] (size_type idx) const
 
Array< XeenItem > & operator= (const Array< XeenItem > &array)
 
Arrayoperator= (Array< XeenItem > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< XeenItem > &other) const
 
bool operator!= (const Array< XeenItem > &other) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void reserve (size_type newCapacity)
 
void resize (size_type newSize)
 
void assign (const_iterator first, const_iterator last)
 

Protected Member Functions

Common::String getAttributes (XeenItem &item, const Common::String &classes) override
 
- Protected Member Functions inherited from Xeen::InventoryItems
XeenEnginegetVm ()
 
void equipError (int itemIndex1, ItemCategory category1, int itemIndex2, ItemCategory category2)
 
void capitalizeItem (Common::String &name)
 
const char * getMaeName (int material)
 
- Protected Member Functions inherited from Common::Array< XeenItem >
void allocCapacity (size_type capacity)
 
void freeStorage (XeenItem *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 

Additional Inherited Members

- Public Types inherited from Common::Array< XeenItem >
typedef XeenItem * iterator
 
typedef const XeenItem * const_iterator
 
typedef XeenItem value_type
 
typedef uint size_type
 
- Static Protected Member Functions inherited from Common::Array< XeenItem >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Xeen::InventoryItems
Character_character
 
ItemCategory _category
 
const char ** _names
 
- Protected Attributes inherited from Common::Array< XeenItem >
size_type _capacity
 
size_type _size
 
XeenItem * _storage
 

Member Function Documentation

◆ getAttributes()

Common::String Xeen::MiscItems::getAttributes ( XeenItem item,
const Common::String classes 
)
overrideprotectedvirtual

Returns a text string listing all the stats/attributes of a given item

Implements Xeen::InventoryItems.

◆ getFullDescription()

Common::String Xeen::MiscItems::getFullDescription ( int  itemIndex,
int  displayNum 
)
overridevirtual

Assembles a full lines description for a specified item for use in the Items dialog

Implements Xeen::InventoryItems.


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