22 #ifndef PARALLACTION_INVENTORY_H 23 #define PARALLACTION_INVENTORY_H 26 #include "graphics/surface.h" 51 #define MAKE_INVENTORY_ID(x) (((x) & 0xFFFF) << 16) 53 typedef int16 ItemPosition;
54 typedef uint16 ItemName;
69 ItemPosition addItem(ItemName name, uint32 value);
70 ItemPosition addItem(ItemName item);
71 void removeItem(ItemName name);
72 void clear(
bool keepVerbs =
true);
75 ItemName getItemName(ItemPosition pos)
const;
77 ItemPosition findItem(ItemName name)
const;
79 int16 getNumItems()
const {
return _numItems; }
96 void drawItem(ItemPosition pos, ItemName name);
105 void showInventory();
106 void hideInventory();
109 void highlightItem(ItemPosition pos, byte color);
110 void drawItem(ItemName name, byte *buffer, uint pitch);
112 byte *getData() {
return (byte *)_surf.
getPixels(); }
115 int16 getNumLines()
const;
Definition: inventory.h:84
Definition: inventory.h:37
Definition: inventory.h:32
Definition: inventory.h:56
const void * getPixels() const
Definition: surface.h:108