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

Public Member Functions

 ScalpelInventory (SherlockEngine *vm)
 
void drawInventory (InvNewMode flag)
 
void invCommands (bool slamIt)
 
void highlight (int index, byte color)
 
void refreshInv ()
 
void putInv (InvSlamMode slamIt)
 
void loadInv () override
 
int identifyUserButton (int key)
 
- 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 push_back (const 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)
 

Public Attributes

Common::String _fixedTextExit
 
Common::String _fixedTextLook
 
Common::String _fixedTextUse
 
Common::String _fixedTextGive
 
byte _hotkeyExit
 
byte _hotkeyLook
 
byte _hotkeyUse
 
byte _hotkeyGive
 
byte _hotkeysIndexed [8]
 
- Public Attributes inherited from Sherlock::Inventory
Common::Array< ImageFile * > _invShapes
 
bool _invGraphicsLoaded
 
InvMode _invMode
 
int _invIndex
 
int _holdings
 

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)
 
- 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

◆ drawInventory()

void Sherlock::Scalpel::ScalpelInventory::drawInventory ( InvNewMode  flag)

Put the game into inventory mode and open the interface window.

◆ invCommands()

void Sherlock::Scalpel::ScalpelInventory::invCommands ( bool  slamIt)

Prints the line of inventory commands at the top of an inventory window with the correct highlighting

◆ highlight()

void Sherlock::Scalpel::ScalpelInventory::highlight ( int  index,
byte  color 
)

Set the highlighting color of a given inventory item

◆ refreshInv()

void Sherlock::Scalpel::ScalpelInventory::refreshInv ( )

Support method for refreshing the display of the inventory

◆ putInv()

void Sherlock::Scalpel::ScalpelInventory::putInv ( InvSlamMode  slamIt)

Display the character's inventory. The slamIt parameter specifies:

◆ loadInv()

void Sherlock::Scalpel::ScalpelInventory::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.

◆ identifyUserButton()

int Sherlock::Scalpel::ScalpelInventory::identifyUserButton ( int  key)

Identifies a button number according to the key, that the user pressed


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