diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-02-17 20:32:49 -0800 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-18 18:26:33 +0200 |
commit | 0b10f0318b9f9ab308f04712698aa104bec21e29 (patch) | |
tree | 5280374e729cc8950fba3301a60fdce4cb727074 /src/localplayer.h | |
parent | 8329553a5342b1b3b6d81892199c124db0967fc4 (diff) | |
download | manaverse-0b10f0318b9f9ab308f04712698aa104bec21e29.tar.gz manaverse-0b10f0318b9f9ab308f04712698aa104bec21e29.tar.bz2 manaverse-0b10f0318b9f9ab308f04712698aa104bec21e29.tar.xz manaverse-0b10f0318b9f9ab308f04712698aa104bec21e29.zip |
Specific messages for each pickup failure reason.
Reviewed-by: Jaxad0127
Manaplus: fix code style and add some checks.
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 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; |