summaryrefslogtreecommitdiff
path: root/src/gui/windows/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:34:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:34:24 +0300
commit8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0 (patch)
treec55088930bdf1ff0b7fe1f4d6f9219ca6c55e9c9 /src/gui/windows/ministatuswindow.cpp
parent4eaedf092bc504fae492827b1a89e7bbaac20263 (diff)
downloadmv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.gz
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.bz2
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.xz
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.zip
Remove getter for playerHandler.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r--src/gui/windows/ministatuswindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index ba4aaf8c7..a02ea3f1e 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -71,13 +71,13 @@ MiniStatusWindow::MiniStatusWindow() :
"hpprogressbar.xml", "hpprogressbar_fill.xml",
"hp bar", _("health bar"))),
mMpBar(gameHandler->canUseMagicBar()
- ? createBar(0, 100, 0, Net::getPlayerHandler()->canUseMagic()
+ ? createBar(0, 100, 0, playerHandler->canUseMagic()
? Theme::MP_BAR : Theme::NO_MP_BAR,
- Net::getPlayerHandler()->canUseMagic()
+ playerHandler->canUseMagic()
? Theme::PROG_MP : Theme::PROG_NO_MP,
- Net::getPlayerHandler()->canUseMagic()
+ playerHandler->canUseMagic()
? "mpprogressbar.xml" : "nompprogressbar.xml",
- Net::getPlayerHandler()->canUseMagic()
+ playerHandler->canUseMagic()
? "mpprogressbar_fill.xml" : "nompprogressbar_fill.xml",
// TRANSLATORS: status bar name
"mp bar", _("mana bar")) : nullptr),
@@ -122,7 +122,7 @@ MiniStatusWindow::MiniStatusWindow() :
if (gameHandler->canUseMagicBar() && statusWindow)
statusWindow->updateMPBar(mMpBar);
- const int job = Net::getPlayerHandler()->getJobLocation()
+ const int job = playerHandler->getJobLocation()
&& serverConfig.getValueBool("showJob", true);
StatusWindow::updateXPBar(mXpBar);
@@ -383,12 +383,12 @@ void MiniStatusWindow::mouseMoved(MouseEvent &event)
else if (event.getSource() == mJobBar)
{
const std::pair<int, int> exp = PlayerInfo::getStatExperience(
- Net::getPlayerHandler()->getJobLocation());
+ playerHandler->getJobLocation());
// TRANSLATORS: job bar label
const std::string level = strprintf(_("Job level: %d"),
PlayerInfo::getStatBase(
- Net::getPlayerHandler()->getJobLocation()));
+ playerHandler->getJobLocation()));
if (exp.first > exp.second)
{