summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index b9495b6ca..c7e6e7838 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -50,6 +50,21 @@ class AwayListener : public gcn::ActionListener
};
/**
+ * Reasons an item can fail to be picked up.
+ */
+enum
+{
+ PICKUP_OKAY,
+ PICKUP_BAD_ITEM,
+ PICKUP_TOO_HEAVY,
+ PICKUP_TOO_FAR,
+ PICKUP_INV_FULL,
+ PICKUP_STACK_FULL,
+ PICKUP_DROP_STEAL
+};
+
+
+/**
* The local player character.
*/
class LocalPlayer : public Being, public ActorSpriteListener,
@@ -194,7 +209,8 @@ class LocalPlayer : public Being, public ActorSpriteListener,
/**
* Shows item pickup notifications.
*/
- void pickedUp(const ItemInfo &itemInfo, int amount);
+ void pickedUp(const ItemInfo &itemInfo, int amount,
+ unsigned char fail);
int getLevel() const;