diff options
author | Nicola Mettifogo | 2007-07-09 19:19:56 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-07-09 19:19:56 +0000 |
commit | 945be6e5f220a92e92cf715c80ee72a108cfe9b6 (patch) | |
tree | a02ff212ad28a6702a31db4de8f2b46710773bdf /engines/parallaction/inventory.h | |
parent | 11b43f877d47965773fa9b0f7127cc22f7000db6 (diff) | |
download | scummvm-rg350-945be6e5f220a92e92cf715c80ee72a108cfe9b6.tar.gz scummvm-rg350-945be6e5f220a92e92cf715c80ee72a108cfe9b6.tar.bz2 scummvm-rg350-945be6e5f220a92e92cf715c80ee72a108cfe9b6.zip |
Moved mouse cursor tampering from inventory.cpp to Gfx class, and some cleanup.
svn-id: r27996
Diffstat (limited to 'engines/parallaction/inventory.h')
-rw-r--r-- | engines/parallaction/inventory.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/parallaction/inventory.h b/engines/parallaction/inventory.h index 7b2e93efa7..4a3e07cc97 100644 --- a/engines/parallaction/inventory.h +++ b/engines/parallaction/inventory.h @@ -34,10 +34,14 @@ namespace Parallaction { struct Cnv; struct InventoryItem { - uint32 _id; // lowest 16 bits are always zero - uint16 _index; + uint32 _id; // object name (lowest 16 bits are always zero) + uint16 _index; // index to frame in objs file }; +#define INVENTORYITEM_PITCH 32 +#define INVENTORYITEM_WIDTH 24 +#define INVENTORYITEM_HEIGHT 24 + #define MAKE_INVENTORY_ID(x) (((x) & 0xFFFF) << 16) @@ -50,10 +54,9 @@ void closeInventory(); void cleanInventory(); void addInventoryItem(uint16 item); +int16 getInventoryItemIndex(int16 pos); void highlightInventoryItem(int16 pos, byte color); -void extractInventoryGraphics(int16 pos, byte *dst); - } // namespace Parallaction |