diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 19:52:12 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-13 19:52:12 -0600 |
commit | 666211542df4fd4fb0f9a1c936b54f6405ef09ba (patch) | |
tree | 478ea55ae467406f2f90f8941a2c5bc2a74a48db /src/localplayer.h | |
parent | 6c764b3c95d0c078c5ccebac607517353e64dc55 (diff) | |
download | mana-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.gz mana-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.bz2 mana-666211542df4fd4fb0f9a1c936b54f6405ef09ba.tar.xz mana-666211542df4fd4fb0f9a1c936b54f6405ef09ba.zip |
Some item pickup cleaning
Still need to find where to attach LocalPlayer::pickedUp for TMWServ.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 702ae38c..7fb43d3a 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -26,6 +26,7 @@ #include <vector> #include "player.h" +#include "gui/palette.h" class Equipment; class FloorItem; @@ -269,9 +270,9 @@ class LocalPlayer : public Player void emote(Uint8 emotion); /** - * Shows item pickup effect if the player is on a map. + * Shows item pickup notifications. */ - void pickedUp(const std::string &item); + void pickedUp(const ItemInfo &itemInfo, int amount); /** * Accessors for mInStorage @@ -375,7 +376,8 @@ class LocalPlayer : public Player const std::auto_ptr<Equipment> mEquipment; - void addMessageToQueue(const std::string &message); + void addMessageToQueue(const std::string &message, + Palette::ColorType color = Palette::EXP_INFO); protected: virtual void handleStatusEffect(StatusEffect *effect, int effectId); @@ -443,7 +445,9 @@ class LocalPlayer : public Player /** Animated target cursors. */ SimpleAnimation *mTargetCursor[2][NUM_TC]; - std::list<std::string> mMessages; /**< Queued exp messages*/ + typedef std::pair<std::string, Palette::ColorType> MessagePair; + /** Queued exp messages*/ + std::list<MessagePair> mMessages; int mMessageTime; }; |