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 (Common::CustomEventType action) |
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) |
| Array & | operator= (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 |
| Common::CustomEventType | _actionsIndexed [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 value_type & | reference |
| typedef const value_type & | const_reference |
| typedef uint | size_type |
Static Public Member Functions inherited from Sherlock::Inventory | |
| static Inventory * | init (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 |
| void Sherlock::Scalpel::ScalpelInventory::drawInventory | ( | InvNewMode | flag | ) |
Put the game into inventory mode and open the interface window.
| void Sherlock::Scalpel::ScalpelInventory::invCommands | ( | bool | slamIt | ) |
Prints the line of inventory commands at the top of an inventory window with the correct highlighting
| void Sherlock::Scalpel::ScalpelInventory::highlight | ( | int | index, |
| byte | color | ||
| ) |
Set the highlighting color of a given inventory item
| void Sherlock::Scalpel::ScalpelInventory::refreshInv | ( | ) |
Support method for refreshing the display of the inventory
| void Sherlock::Scalpel::ScalpelInventory::putInv | ( | InvSlamMode | slamIt | ) |
Display the character's inventory. The slamIt parameter specifies:
|
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.
| int Sherlock::Scalpel::ScalpelInventory::identifyUserButton | ( | Common::CustomEventType | action | ) |
Identifies a button number according to the action, that the user pressed