summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-19 16:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 16:30:24 +0300
commit6c3974a46c659e558b2b5f249b7b000a5b39fe25 (patch)
tree6ba5ad594cc0691821f879efff413c562f7cc552 /src/being/localplayer.cpp
parent4f77307d659c4048c20eacda1d5b13fcce8d60da (diff)
downloadmanaverse-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.gz
manaverse-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.bz2
manaverse-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.xz
manaverse-6c3974a46c659e558b2b5f249b7b000a5b39fe25.zip
Rename actorspritemanager into actormanager.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 4bff1320e..6df48dec7 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -22,7 +22,7 @@
#include "being/localplayer.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "client.h"
#include "configuration.h"
#include "dropshortcut.h"
@@ -902,7 +902,7 @@ bool LocalPlayer::pickUp(FloorItem *const item)
if (dx * dx + dy * dy < dist)
{
- if (actorSpriteManager && actorSpriteManager->checkForPickup(item))
+ if (actorManager && actorManager->checkForPickup(item))
{
PlayerInfo::pickUpItem(item, true);
mPickUpTarget = nullptr;
@@ -1354,9 +1354,9 @@ void LocalPlayer::pickedUp(const ItemInfo &itemInfo, const int amount,
{
if (fail)
{
- if (actorSpriteManager && floorItemId)
+ if (actorManager && floorItemId)
{
- FloorItem *const item = actorSpriteManager->findItem(floorItemId);
+ FloorItem *const item = actorManager->findItem(floorItemId);
if (item)
{
if (!item->getShowMsg())
@@ -3068,7 +3068,7 @@ bool LocalPlayer::isReachable(const int x, const int y,
bool LocalPlayer::pickUpItems(int pickUpType)
{
- if (!actorSpriteManager)
+ if (!actorManager)
return false;
bool status = false;
@@ -3077,7 +3077,7 @@ bool LocalPlayer::pickUpItems(int pickUpType)
// first pick up item on player position
FloorItem *item =
- actorSpriteManager->findItem(x, y);
+ actorManager->findItem(x, y);
if (item)
status = pickUp(item);
@@ -3099,7 +3099,7 @@ bool LocalPlayer::pickUpItems(int pickUpType)
case RIGHT: ++x; break;
default: break;
}
- item = actorSpriteManager->findItem(x, y);
+ item = actorManager->findItem(x, y);
if (item)
status = pickUp(item);
break;
@@ -3112,18 +3112,18 @@ bool LocalPlayer::pickUpItems(int pickUpType)
case RIGHT: x1 = x; y1 = y - 1; x2 = x + 1; y2 = y + 1; break;
default: x1 = x; x2 = x; y1 = y; y2 = y; break;
}
- if (actorSpriteManager->pickUpAll(x1, y1, x2, y2))
+ if (actorManager->pickUpAll(x1, y1, x2, y2))
status = true;
break;
case 3:
- if (actorSpriteManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
+ if (actorManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
status = true;
break;
case 4:
- if (!actorSpriteManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
+ if (!actorManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
{
- if (actorSpriteManager->pickUpNearest(x, y, 4))
+ if (actorManager->pickUpNearest(x, y, 4))
status = true;
}
else
@@ -3133,9 +3133,9 @@ bool LocalPlayer::pickUpItems(int pickUpType)
break;
case 5:
- if (!actorSpriteManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
+ if (!actorManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
{
- if (actorSpriteManager->pickUpNearest(x, y, 8))
+ if (actorManager->pickUpNearest(x, y, 8))
status = true;
}
else
@@ -3145,9 +3145,9 @@ bool LocalPlayer::pickUpItems(int pickUpType)
break;
case 6:
- if (!actorSpriteManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
+ if (!actorManager->pickUpAll(x - 1, y - 1, x + 1, y + 1))
{
- if (actorSpriteManager->pickUpNearest(x, y, 90))
+ if (actorManager->pickUpNearest(x, y, 90))
status = true;
}
else
@@ -3701,13 +3701,13 @@ void LocalPlayer::updateCoords()
/ mapTileSize;
if (mNavigateId)
{
- if (!actorSpriteManager)
+ if (!actorManager)
{
navigateClean();
return;
}
- const Being *const being = actorSpriteManager
+ const Being *const being = actorManager
->findBeing(mNavigateId);
if (!being)
{
@@ -4052,9 +4052,9 @@ void LocalPlayer::followMoveTo(const Being *const being,
case 3:
if (!mTarget || mTarget->getName() != mPlayerFollowed)
{
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const b = actorSpriteManager->findBeingByName(
+ Being *const b = actorManager->findBeingByName(
mPlayerFollowed, Being::PLAYER);
setTarget(b);
}