summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 19:28:57 +0300
commit87c59212f8590a8dd72fac3e320fcb2ada781355 (patch)
tree198d627c44f1164140659827a5c782d30bec375b /src/being/being.cpp
parent02e91411eb9961e95f856bd717d6ca0d8ec0e435 (diff)
downloadManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.gz
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.bz2
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.tar.xz
ManaVerse-87c59212f8590a8dd72fac3e320fcb2ada781355.zip
Move player attributes into separate file.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index c9af368b2..4cd30f35f 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -33,6 +33,7 @@
#include "soundmanager.h"
#include "text.h"
+#include "being/attributes.h"
#include "being/beingcacheentry.h"
#include "being/playerrelations.h"
@@ -2392,8 +2393,8 @@ void Being::drawSpriteAt(Graphics *const graphics,
}
if (mShowOwnHP && mInfo && player_node == this && mAction != DEAD)
{
- drawHpBar(graphics, PlayerInfo::getAttribute(PlayerInfo::MAX_HP),
- PlayerInfo::getAttribute(PlayerInfo::HP), 0,
+ drawHpBar(graphics, PlayerInfo::getAttribute(Attributes::MAX_HP),
+ PlayerInfo::getAttribute(Attributes::HP), 0,
UserPalette::PLAYER_HP, UserPalette::PLAYER_HP2,
x - 50 + mapTileSize / 2 + mInfo->getHpBarOffsetX(),
y + mapTileSize - 6 + mInfo->getHpBarOffsetY(),