ScummVM API documentation
NGI::Inventory2 Class Reference
Inheritance diagram for NGI::Inventory2:
NGI::Inventory NGI::CObject

Public Member Functions

bool loadPartial (MfcArchive &file)
 
bool savePartial (MfcArchive &file)
 
void addItem (int itemId, int count)
 
void addItem2 (StaticANIObject *obj)
 
void removeItem (int itemId, int count)
 
void removeItem2 (Scene *sceneObj, int itemId, int x, int y, int priority)
 
int getInventoryItemIndexById (int itemId)
 
int getInventoryPoolItemIdAtIndex (int itemId)
 
int getInventoryPoolItemFieldCById (int itemId)
 
int getCountItemsWithId (int itemId)
 
int getItemFlags (int itemId)
 
void rebuildItemRects ()
 
ScenegetScene ()
 
bool getIsLocked ()
 
void setIsLocked (bool val)
 
bool getIsInventoryOut ()
 
int getSelectedItemId ()
 
int getHoveredItem (Common::Point *point)
 
void slideIn ()
 
void slideOut ()
 
bool handleLeftClick (ExCommand *cmd)
 
int selectItem (int itemId)
 
bool unselectItem (bool flag)
 
void draw ()
 
void clear ()
 
- Public Member Functions inherited from NGI::Inventory
bool load (MfcArchive &file) override
 
int getInventoryPoolItemIndexById (int itemId)
 
uint getItemsPoolCount ()
 
bool setItemFlags (int itemId, int flags)
 
- Public Member Functions inherited from NGI::CObject
virtual void save (MfcArchive &out)
 
bool loadFile (const Common::Path &fname)
 

Additional Inherited Members

- Public Attributes inherited from NGI::CObject
ObjType _objtype
 
uint _cnum
 
- Protected Attributes inherited from NGI::Inventory
int16 _sceneId
 
InventoryPoolItems _itemsPool
 

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