diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-02-17 20:32:49 -0800 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-02-17 22:30:20 -0700 |
commit | 85bf2ed70685a29b6a47279deeb61905c6d375b0 (patch) | |
tree | 8d2ff19afbcda92b49894262752af2ee8c5b289c /src/localplayer.h | |
parent | b74616db888fb69b81d49792ca3d68af3bdeaefe (diff) | |
download | mana-85bf2ed70685a29b6a47279deeb61905c6d375b0.tar.gz mana-85bf2ed70685a29b6a47279deeb61905c6d375b0.tar.bz2 mana-85bf2ed70685a29b6a47279deeb61905c6d375b0.tar.xz mana-85bf2ed70685a29b6a47279deeb61905c6d375b0.zip |
Specific messages for each pickup failure reason.
Reviewed-by: Jaxad0127
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 7706caeb..8033263b 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -107,6 +107,21 @@ enum }; /** + * 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 Player @@ -273,7 +288,8 @@ class LocalPlayer : public Player /** * Shows item pickup notifications. */ - void pickedUp(const ItemInfo &itemInfo, int amount); + void pickedUp(const ItemInfo &itemInfo, int amount, + unsigned char fail); int getHp() const { return mHp; } |