22 #ifndef NGI_INVENTORY_H 23 #define NGI_INVENTORY_H 32 int16 pictureObjectNormal;
33 int16 pictureObjectId1;
34 int16 pictureObjectHover;
35 int16 pictureObjectSelected;
47 InventoryPoolItems _itemsPool;
54 int getInventoryPoolItemIndexById(
int itemId);
55 uint getItemsPoolCount() {
return _itemsPool.
size(); }
56 bool setItemFlags(
int itemId,
int flags);
77 int16 inventoryItemId;
99 void addItem(
int itemId,
int count);
101 void removeItem(
int itemId,
int count);
102 void removeItem2(
Scene *sceneObj,
int itemId,
int x,
int y,
int priority);
104 int getInventoryItemIndexById(
int itemId);
105 int getInventoryPoolItemIdAtIndex(
int itemId);
106 int getInventoryPoolItemFieldCById(
int itemId);
107 int getCountItemsWithId(
int itemId);
108 int getItemFlags(
int itemId);
110 void rebuildItemRects();
112 Scene *getScene() {
return _scene; }
113 bool getIsLocked() {
return _isLocked; }
114 void setIsLocked(
bool val) { _isLocked = val; }
115 bool getIsInventoryOut() {
return _isInventoryOut; }
117 int getSelectedItemId() {
return _selectedId < 0 ? 0 : _selectedId; }
123 int selectItem(
int itemId);
124 bool unselectItem(
bool flag);
Definition: inventory.h:82
Definition: inventory.h:69
Definition: inventory.h:44
size_type size() const
Definition: array.h:315
Definition: statics.h:172
Definition: messages.h:59
Definition: anihandler.h:25
Definition: inventory.h:30
Definition: inventory.h:59