summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-09-12 17:12:24 +0000
commit8551f4a5c5e1feddc4f2868488bdefeae85aa26d (patch)
tree39b91c9d7124c1c03e954ceb9b3434adcaf022ce /src/localplayer.h
parenta9595f435664df56948ae70e954cf72143ddcfa1 (diff)
downloadmana-client-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.gz
mana-client-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.bz2
mana-client-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.tar.xz
mana-client-8551f4a5c5e1feddc4f2868488bdefeae85aa26d.zip
Fixed /where, added /cast for heal and gather, some changes to inventory to support storage
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h16
1 files changed, 16 insertions, 0 deletions
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;
@@ -71,6 +74,11 @@ class LocalPlayer : public Player
Inventory* getInventory() const { return mInventory; }
/**
+ * Returns the player's storage
+ */
+ Inventory* getStorage() const { return mStorage; }
+
+ /**
* Equips an item.
*/
void equipItem(Item *item);
@@ -166,6 +174,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;