From f141416397c8fd7f65fd9cd363a99257ca769d86 Mon Sep 17 00:00:00 2001 From: Simon Edwardsson Date: Sun, 26 Sep 2004 19:01:56 +0000 Subject: The invetory now gets real items, and you can use them. --- src/gui/inventory.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui/inventory.h') 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 -- cgit v1.2.3-70-g09d2