diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-08 09:29:22 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-08 09:29:22 -0400 |
commit | 01a31f374b953b9d40548f8369289a8c6dc48b77 (patch) | |
tree | 20b6d58d83738c02c15fe45db464107a0f98dea3 /include | |
parent | e1982d3eb176d73e3bad2a344be8b12107b1c876 (diff) |
fixed mouse
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 4 | ||||
-rw-r--r-- | include/inventory.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h index b7c13e7..b57999d 100644 --- a/include/common.h +++ b/include/common.h @@ -30,8 +30,8 @@ enum GENDER{ #include <Quest.h> #include <entities.h> -#define SCREEN_WIDTH 1280 -#define SCREEN_HEIGHT 740 +#define SCREEN_WIDTH 640 +#define SCREEN_HEIGHT 480 //#define FULLSCREEN #define HLINE 3 //base unit of the world diff --git a/include/inventory.h b/include/inventory.h index d68fed9..c477b8e 100644 --- a/include/inventory.h +++ b/include/inventory.h @@ -7,7 +7,7 @@ enum ITEM_ID { // Contains item IDs for every item in the game, this is how items are stored. IDs are also used to lookup item strings TEST_ITEM = 1, // A test item (duh) - SWORD_ITEM + SWORD_ITEM = 2 }; struct item_t { // Used to define entries in an entity's inventory @@ -17,6 +17,7 @@ struct item_t { // Used to define entries in an entity's inventory class Inventory { private: + unsigned int sel; unsigned int size; // Size of 'item' array struct item_t *item; // An array of the items contained in this inventory. public: @@ -26,6 +27,8 @@ public: int addItem(ITEM_ID id,unsigned char count); // Add 'count' items with an id of 'id' to the inventory int takeItem(ITEM_ID id,unsigned char count); // Take 'count' items with an id of 'id' from the inventory + void setSelection(unsigned int s); + void draw(void); // Draws a text list of items in this inventory (should only be called for the player for now) }; |