diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-11 19:28:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-11 19:28:57 +0300 |
commit | 87c59212f8590a8dd72fac3e320fcb2ada781355 (patch) | |
tree | 198d627c44f1164140659827a5c782d30bec375b /src/gui/widgets/characterdisplay.cpp | |
parent | 02e91411eb9961e95f856bd717d6ca0d8ec0e435 (diff) | |
download | manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.gz manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.bz2 manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.xz manaverse-87c59212f8590a8dd72fac3e320fcb2ada781355.zip |
Move player attributes into separate file.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r-- | src/gui/widgets/characterdisplay.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp index 941249560..85480db3a 100644 --- a/src/gui/widgets/characterdisplay.cpp +++ b/src/gui/widgets/characterdisplay.cpp @@ -24,6 +24,8 @@ #include "units.h" +#include "being/attributes.h" + #include "gui/gui.h" #include "gui/windows/charselectdialog.h" @@ -133,9 +135,9 @@ void CharacterDisplay::mouseMoved(MouseEvent &event A_UNUSED) { mPopup->show(mouseX, mouseY, name, strprintf(_("Level: %u"), static_cast<uint32_t>( - mCharacter->data.mAttributes[PlayerInfo::LEVEL])), + mCharacter->data.mAttributes[Attributes::LEVEL])), strprintf(_("Money: %s"), Units::formatCurrency( - mCharacter->data.mAttributes[PlayerInfo::MONEY]).c_str())); + mCharacter->data.mAttributes[Attributes::MONEY]).c_str())); } else { |