diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-09-26 19:01:56 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-09-26 19:01:56 +0000 |
commit | f141416397c8fd7f65fd9cd363a99257ca769d86 (patch) | |
tree | 72146533436ba487b35c8795194f729c220935f5 /src/gui/inventory.h | |
parent | 9f25a358b6a10b9abeb93cd42129254a331d80cf (diff) | |
download | mana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.gz mana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.bz2 mana-f141416397c8fd7f65fd9cd363a99257ca769d86.tar.xz mana-f141416397c8fd7f65fd9cd363a99257ca769d86.zip |
The invetory now gets real items, and you can use them.
Diffstat (limited to 'src/gui/inventory.h')
-rw-r--r-- | src/gui/inventory.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/inventory.h b/src/gui/inventory.h index f72bdb64..1b5d2c12 100644 --- a/src/gui/inventory.h +++ b/src/gui/inventory.h @@ -44,9 +44,7 @@ struct itemHolder { // the holder of a item int xpos,ypos; // where am I? }; -struct itemID {//the holder of the pictures for each item, maybe more in the future - BITMAP * pic; -}; + class TmwInventory{ public: @@ -61,6 +59,7 @@ class TmwInventory{ int addItem(int idnum, int antal); //add a item int rmItem(int idnum); //remove a item int changeNum(int idnum, int antal); // change nummber of a item + int useItem(int idnum); //END API private: BITMAP * backgroundSmall; @@ -69,12 +68,16 @@ class TmwInventory{ BITMAP * empty; BITMAP * selected; itemHolder items[10][10]; // this is the test holder of items - itemID itemPIC[2]; // I only got two items + DATAFILE *itemset; int ghostX, ghostY, ghostID, ghostOldIDX,ghostOldIDY; //info needed when moving item int dragingItem, lastSelectedX,lastSelectedY; //info needed when moving item int areDisplaying, dragingWindow; int bigwindow; int xpos, ypos; // Where am I ? + int itemMeny; + int itemMeny_x, itemMeny_y; + int itemIdn; + }; #endif |