summaryrefslogtreecommitdiff
path: root/src/being
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
parent4f77307d659c4048c20eacda1d5b13fcce8d60da (diff)
downloadplus-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.gz
plus-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.bz2
plus-6c3974a46c659e558b2b5f249b7b000a5b39fe25.tar.xz
plus-6c3974a46c659e558b2b5f249b7b000a5b39fe25.zip
Rename actorspritemanager into actormanager.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp14
-rw-r--r--src/being/localplayer.cpp38
-rw-r--r--src/being/playerrelations.cpp10
3 files changed, 31 insertions, 31 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 556341062..fdd706bbe 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -22,7 +22,7 @@
#include "being/being.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "animatedsprite.h"
#include "beingequipbackend.h"
#include "client.h"
@@ -1572,8 +1572,8 @@ void Being::logic()
&& static_cast<int> ((static_cast<float>(get_elapsed_time(mActionTime))
/ mSpeed)) >= frameCount)
{
- if (mType != PLAYER && actorSpriteManager)
- actorSpriteManager->destroy(this);
+ if (mType != PLAYER && actorManager)
+ actorManager->destroy(this);
}
const SoundInfo *const sound = mNextSound.sound;
@@ -2991,11 +2991,11 @@ void Being::addEffect(const std::string &name)
void Being::addPet(const int id)
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
removePet();
- Being *const being = actorSpriteManager->createBeing(
+ Being *const being = actorManager->createBeing(
id, ActorSprite::PET, 0);
if (being)
{
@@ -3008,14 +3008,14 @@ void Being::addPet(const int id)
void Being::removePet()
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
mPetId = 0;
if (mPet)
{
mPet->setOwner(nullptr);
- actorSpriteManager->destroy(mPet);
+ actorManager->destroy(mPet);
mPet = nullptr;
}
}
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);
}
diff --git a/src/being/playerrelations.cpp b/src/being/playerrelations.cpp
index fc4889951..b06539ea0 100644
--- a/src/being/playerrelations.cpp
+++ b/src/being/playerrelations.cpp
@@ -22,7 +22,7 @@
#include "being/playerrelations.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "configuration.h"
#include "being/localplayer.h"
@@ -244,9 +244,9 @@ void PlayerRelationsManager::signalUpdate(const std::string &name)
FOR_EACH (PlayerRelationListenersCIter, it, mListeners)
(*it)->updatedPlayer(name);
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const being = actorSpriteManager->findBeingByName(
+ Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being && being->getType() == Being::PLAYER)
@@ -306,7 +306,7 @@ bool PlayerRelationsManager::hasPermission(const Being *const being,
bool PlayerRelationsManager::hasPermission(const std::string &name,
const unsigned int flags) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return false;
const unsigned int rejections = flags
@@ -318,7 +318,7 @@ bool PlayerRelationsManager::hasPermission(const std::string &name,
// execute `ignore' strategy, if possible
if (mIgnoreStrategy)
{
- Being *const b = actorSpriteManager->findBeingByName(
+ Being *const b = actorManager->findBeingByName(
name, ActorSprite::PLAYER);
if (b && b->getType() == ActorSprite::PLAYER)