From 8551f4a5c5e1feddc4f2868488bdefeae85aa26d Mon Sep 17 00:00:00 2001 From: Lloyd Bryant Date: Fri, 12 Sep 2008 17:12:24 +0000 Subject: Fixed /where, added /cast for heal and gather, some changes to inventory to support storage --- src/localplayer.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 64e6c5ad..1d865824 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -29,6 +29,9 @@ // TODO move into some sane place... #define MAX_SLOT 2 +#define INVENTORY_SIZE 102 +#define STORAGE_SIZE 301 + class FloorItem; class Inventory; class Item; @@ -70,6 +73,11 @@ class LocalPlayer : public Player */ Inventory* getInventory() const { return mInventory; } + /** + * Returns the player's storage + */ + Inventory* getStorage() const { return mStorage; } + /** * Equips an item. */ @@ -165,6 +173,12 @@ class LocalPlayer : public Player void revive(); + /** + * Accessors for mInStorage + */ + bool getInStorage() { return mInStorage; } + void setInStorage(bool inStorage) { mInStorage = inStorage; } + /** * Sets the amount of XP. Shows XP gaining effect if the player is on * a map. @@ -210,6 +224,7 @@ class LocalPlayer : public Player FloorItem *mPickUpTarget; bool mTrading; + bool mInStorage; /**< Whether storage is currently accessible */ bool mGoingToTarget; int mLastAction; /**< Time stamp of the last action, -1 if none. */ int mWalkingDir; /**< The direction the player is walking in. */ @@ -217,6 +232,7 @@ class LocalPlayer : public Player int mDestY; /**< Y coordinate of destination. */ Inventory *mInventory; + Inventory *mStorage; }; extern LocalPlayer *player_node; -- cgit v1.2.3-70-g09d2