ScummVM API documentation
Sherlock::Tattoo::TattooInventory Class Reference
Inheritance diagram for Sherlock::Tattoo::TattooInventory:
Sherlock::Inventory Common::Array< InventoryItem >

Public Member Functions

 TattooInventory (SherlockEngine *vm)
 
void loadInv () override
 
- Public Member Functions inherited from Sherlock::Inventory
void freeGraphics ()
 
 Inventory (SherlockEngine *vm)
 
void freeInv ()
 
void loadGraphics ()
 
int findInv (const Common::String &name)
 
int putNameInInventory (const Common::String &name)
 
int putItemInInventory (Object &obj)
 
int deleteItemFromInventory (const Common::String &name)
 
void synchronize (Serializer &s)
 
- Public Member Functions inherited from Common::Array< InventoryItem >
 Array (size_type count)
 
 Array (size_type count, const InventoryItem &value)
 
 Array (const Array< InventoryItem > &array)
 
 Array (Array< InventoryItem > &&old)
 
 Array (std::initializer_list< InventoryItem > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const InventoryItem &element)
 
void push_back (InventoryItem &&element)
 
void push_back (const Array< InventoryItem > &array)
 
void pop_back ()
 
const InventoryItem * data () const
 
InventoryItem * data ()
 
InventoryItem & front ()
 
const InventoryItem & front () const
 
InventoryItem & back ()
 
const InventoryItem & back () const
 
void insert_at (size_type idx, const InventoryItem &element)
 
void insert_at (size_type idx, const Array< InventoryItem > &array)
 
void insert (iterator pos, const InventoryItem &element)
 
InventoryItem remove_at (size_type idx)
 
InventoryItem & operator[] (size_type idx)
 
const InventoryItem & operator[] (size_type idx) const
 
Array< InventoryItem > & operator= (const Array< InventoryItem > &array)
 
Arrayoperator= (Array< InventoryItem > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< InventoryItem > &other) const
 
bool operator!= (const Array< InventoryItem > &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 resize (size_type newSize, const InventoryItem value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Additional Inherited Members

- Public Types inherited from Common::Array< InventoryItem >
typedef InventoryItem * iterator
 
typedef const InventoryItem * const_iterator
 
typedef InventoryItem value_type
 
typedef uint size_type
 
- Static Public Member Functions inherited from Sherlock::Inventory
static Inventoryinit (SherlockEngine *vm)
 
- Public Attributes inherited from Sherlock::Inventory
Common::Array< ImageFile * > _invShapes
 
bool _invGraphicsLoaded
 
InvMode _invMode
 
int _invIndex
 
int _holdings
 
- Protected Member Functions inherited from Sherlock::Inventory
void copyToInventory (Object &obj)
 
- Protected Member Functions inherited from Common::Array< InventoryItem >
void allocCapacity (size_type capacity)
 
void freeStorage (InventoryItem *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< InventoryItem >
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Sherlock::Inventory
SherlockEngine_vm
 
Common::StringArray _names
 
- Protected Attributes inherited from Common::Array< InventoryItem >
size_type _capacity
 
size_type _size
 
InventoryItem * _storage
 

Member Function Documentation

◆ loadInv()

void Sherlock::Tattoo::TattooInventory::loadInv ( )
overridevirtual

Load the list of names the inventory items correspond to, if not already loaded, and then calls loadGraphics to load the associated graphics

Implements Sherlock::Inventory.


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