summaryrefslogtreecommitdiff
path: root/src/net
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/net
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/net')
-rw-r--r--src/net/ea/beinghandler.cpp84
-rw-r--r--src/net/ea/chathandler.cpp14
-rw-r--r--src/net/ea/guildhandler.cpp28
-rw-r--r--src/net/ea/itemhandler.cpp16
-rw-r--r--src/net/ea/partyhandler.cpp14
-rw-r--r--src/net/eathena/beinghandler.cpp30
-rw-r--r--src/net/eathena/guildhandler.cpp6
-rw-r--r--src/net/eathena/partyhandler.cpp6
-rw-r--r--src/net/tmwa/beinghandler.cpp20
-rw-r--r--src/net/tmwa/guildhandler.cpp6
-rw-r--r--src/net/tmwa/partyhandler.cpp6
11 files changed, 115 insertions, 115 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 4e08f5466..4938ea525 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -24,7 +24,7 @@
#include "net/ea/eaprotocol.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "client.h"
#include "configuration.h"
#include "effectmanager.h"
@@ -64,7 +64,7 @@ BeingHandler::BeingHandler(const bool enableSync) :
Being *BeingHandler::createBeing(const int id, const int16_t job) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return nullptr;
ActorSprite::Type type = ActorSprite::UNKNOWN;
@@ -77,7 +77,7 @@ Being *BeingHandler::createBeing(const int id, const int16_t job) const
else if (job == 45)
type = ActorSprite::PORTAL;
- Being *const being = actorSpriteManager->createBeing(id, type, job);
+ Being *const being = actorManager->createBeing(id, type, job);
if (type == ActorSprite::PLAYER || type == ActorSprite::NPC)
{
@@ -115,7 +115,7 @@ void BeingHandler::setSprite(Being *const being, const unsigned int slot,
void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
const bool visible)
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
int spawnId;
@@ -136,13 +136,13 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
if (id == player_node->getId() && job >= 1000)
disguiseId = job;
- Being *dstBeing = actorSpriteManager->findBeing(id);
+ Being *dstBeing = actorManager->findBeing(id);
if (dstBeing && dstBeing->getType() == Being::MONSTER
&& !dstBeing->isAlive())
{
- actorSpriteManager->destroy(dstBeing);
- actorSpriteManager->erase(dstBeing);
+ actorManager->destroy(dstBeing);
+ actorManager->erase(dstBeing);
dstBeing = nullptr;
}
@@ -153,7 +153,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
if (job == 0 && id >= 110000000)
return;
- if (actorSpriteManager->isBlocked(id) == true)
+ if (actorManager->isBlocked(id) == true)
return;
dstBeing = createBeing(id, job);
@@ -168,7 +168,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
{
if (dstBeing->getType() == Being::NPC)
{
- actorSpriteManager->undelete(dstBeing);
+ actorManager->undelete(dstBeing);
if (serverVersion < 1)
requestNameById(id);
}
@@ -341,7 +341,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
/*
@@ -349,7 +349,7 @@ void BeingHandler::processBeingMove2(Net::MessageIn &msg) const
* later versions of eAthena for both mobs and
* players
*/
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
/*
* This packet doesn't have enough info to actually
@@ -384,13 +384,13 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg)
void BeingHandler::processBeingRemove(Net::MessageIn &msg) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
// A being should be removed or has died
const int id = msg.readInt32();
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (!dstBeing)
return;
@@ -420,19 +420,19 @@ void BeingHandler::processBeingRemove(Net::MessageIn &msg) const
if (socialWindow)
socialWindow->updateActiveList();
}
- actorSpriteManager->destroy(dstBeing);
+ actorManager->destroy(dstBeing);
}
}
void BeingHandler::processBeingResurrect(Net::MessageIn &msg) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
// A being changed mortality status
const int id = msg.readInt32();
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (!dstBeing)
return;
@@ -447,12 +447,12 @@ void BeingHandler::processBeingResurrect(Net::MessageIn &msg) const
void BeingHandler::processSkillDamage(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
const int id = msg.readInt16(); // Skill Id
- Being *const srcBeing = actorSpriteManager->findBeing(msg.readInt32());
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const srcBeing = actorManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
msg.readInt32(); // Server tick
msg.readInt32(); // src speed
msg.readInt32(); // dst speed
@@ -468,11 +468,11 @@ void BeingHandler::processSkillDamage(Net::MessageIn &msg) const
void BeingHandler::processBeingAction(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- Being *const srcBeing = actorSpriteManager->findBeing(msg.readInt32());
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const srcBeing = actorManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
msg.readInt32(); // server tick
const int srcSpeed = msg.readInt32(); // src speed
@@ -549,11 +549,11 @@ void BeingHandler::processBeingAction(Net::MessageIn &msg) const
void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) const
{
- if (!effectManager || !actorSpriteManager)
+ if (!effectManager || !actorManager)
return;
const int id = static_cast<uint32_t>(msg.readInt32());
- Being *const being = actorSpriteManager->findBeing(id);
+ Being *const being = actorManager->findBeing(id);
if (!being)
return;
@@ -572,10 +572,10 @@ void BeingHandler::processBeingSelfEffect(Net::MessageIn &msg) const
void BeingHandler::processBeingEmotion(Net::MessageIn &msg) const
{
- if (!player_node || !actorSpriteManager)
+ if (!player_node || !actorManager)
return;
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (!dstBeing)
return;
@@ -594,11 +594,11 @@ void BeingHandler::processBeingEmotion(Net::MessageIn &msg) const
void BeingHandler::processNameResponse(Net::MessageIn &msg) const
{
- if (!player_node || !actorSpriteManager)
+ if (!player_node || !actorManager)
return;
const int beingId = msg.readInt32();
- Being *const dstBeing = actorSpriteManager->findBeing(beingId);
+ Being *const dstBeing = actorManager->findBeing(beingId);
if (dstBeing)
{
@@ -634,20 +634,20 @@ void BeingHandler::processNameResponse(Net::MessageIn &msg) const
void BeingHandler::processIpResponse(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (dstBeing)
dstBeing->setIp(ipToString(msg.readInt32()));
}
void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (dstBeing)
{
@@ -668,10 +668,10 @@ void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (!dstBeing)
return;
@@ -686,7 +686,7 @@ void BeingHandler::processBeingChangeDirection(Net::MessageIn &msg) const
void BeingHandler::processPlayerStop(Net::MessageIn &msg) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
/*
@@ -705,7 +705,7 @@ void BeingHandler::processPlayerStop(Net::MessageIn &msg) const
if (mSync || id != player_node->getId())
{
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (dstBeing)
{
const uint16_t x = msg.readInt16();
@@ -732,12 +732,12 @@ void BeingHandler::processPlayerMoveToAttack(Net::MessageIn &msg A_UNUSED)
void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
// Change in players' flags
const int id = msg.readInt32();
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (!dstBeing)
return;
@@ -755,7 +755,7 @@ void BeingHandler::processPlaterStatusChange(Net::MessageIn &msg) const
void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
// Status change
@@ -763,7 +763,7 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const
const int id = msg.readInt32();
const int flag = msg.readInt8(); // 0: stop, 1: start
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (dstBeing)
dstBeing->setStatusEffect(status, flag);
}
@@ -804,9 +804,9 @@ void BeingHandler::processPvpSet(Net::MessageIn &msg) const
const int id = msg.readInt32(); // id
const int rank = msg.readInt32(); // rank
msg.readInt32(); // num
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const dstBeing = actorSpriteManager->findBeing(id);
+ Being *const dstBeing = actorManager->findBeing(id);
if (dstBeing)
dstBeing->setPvpRank(rank);
}
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp
index 1497e41aa..90c6be5bc 100644
--- a/src/net/ea/chathandler.cpp
+++ b/src/net/ea/chathandler.cpp
@@ -22,7 +22,7 @@
#include "net/ea/chathandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "configuration.h"
#include "guildmanager.h"
#include "notifications.h"
@@ -243,12 +243,12 @@ void ChatHandler::processWhisper(Net::MessageIn &msg) const
void ChatHandler::processBeingChat(Net::MessageIn &msg,
const bool channels) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
BLOCK_START("ChatHandler::processBeingChat")
int chatMsgLength = msg.readInt16() - 8;
- Being *const being = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const being = actorManager->findBeing(msg.readInt32());
if (!being)
{
BLOCK_END("ChatHandler::processBeingChat")
@@ -342,9 +342,9 @@ void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat,
if (channel.empty())
{
const std::string senseStr("You sense the following: ");
- if (actorSpriteManager && !chatMsg.find(senseStr))
+ if (actorManager && !chatMsg.find(senseStr))
{
- actorSpriteManager->parseLevels(
+ actorManager->parseLevels(
chatMsg.substr(senseStr.size()));
}
}
@@ -370,9 +370,9 @@ void ChatHandler::processMVP(Net::MessageIn &msg) const
BLOCK_START("ChatHandler::processMVP")
// Display MVP player
const int id = msg.readInt32(); // id
- if (localChatTab && actorSpriteManager && config.getBoolValue("showMVP"))
+ if (localChatTab && actorManager && config.getBoolValue("showMVP"))
{
- const Being *const being = actorSpriteManager->findBeing(id);
+ const Being *const being = actorManager->findBeing(id);
if (!being)
NotifyManager::notify(NotifyManager::MVP_PLAYER, "");
else
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp
index 7e46438d2..10663db57 100644
--- a/src/net/ea/guildhandler.cpp
+++ b/src/net/ea/guildhandler.cpp
@@ -21,7 +21,7 @@
#include "net/ea/guildhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "configuration.h"
#include "notifications.h"
#include "notifymanager.h"
@@ -266,9 +266,9 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg) const
m->setExp(exp);
m->setPos(pos);
m->setRace(race);
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const being = actorSpriteManager->findBeingByName(
+ Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being)
{
@@ -286,10 +286,10 @@ void GuildHandler::processGuildMemberList(Net::MessageIn &msg) const
}
}
taGuild->sort();
- if (actorSpriteManager)
+ if (actorManager)
{
- actorSpriteManager->updatePlayerGuild();
- actorSpriteManager->updatePlayerColors();
+ actorManager->updatePlayerGuild();
+ actorManager->updatePlayerColors();
}
if (socialWindow)
socialWindow->updateGuildCounter(onlineNum, totalNum);
@@ -463,15 +463,15 @@ void GuildHandler::processGuildLeave(Net::MessageIn &msg) const
if (socialWindow && taGuild)
socialWindow->removeTab(taGuild);
- if (actorSpriteManager)
- actorSpriteManager->updatePlayerColors();
+ if (actorManager)
+ actorManager->updatePlayerColors();
}
else
{
NotifyManager::notify(NotifyManager::GUILD_USER_LEFT, nick);
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const b = actorSpriteManager->findBeingByName(
+ Being *const b = actorManager->findBeingByName(
nick, Being::PLAYER);
if (b)
@@ -507,15 +507,15 @@ void GuildHandler::processGuildExpulsion(Net::MessageIn &msg) const
if (socialWindow && taGuild)
socialWindow->removeTab(taGuild);
- if (actorSpriteManager)
- actorSpriteManager->updatePlayerColors();
+ if (actorManager)
+ actorManager->updatePlayerColors();
}
else
{
NotifyManager::notify(NotifyManager::GUILD_USER_KICKED, nick);
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const b = actorSpriteManager->findBeingByName(
+ Being *const b = actorManager->findBeingByName(
nick, Being::PLAYER);
if (b)
diff --git a/src/net/ea/itemhandler.cpp b/src/net/ea/itemhandler.cpp
index 9c9a74b2d..ccc8c92cd 100644
--- a/src/net/ea/itemhandler.cpp
+++ b/src/net/ea/itemhandler.cpp
@@ -22,7 +22,7 @@
#include "net/ea/itemhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "debug.h"
@@ -48,9 +48,9 @@ void ItemHandler::processItemVisible(Net::MessageIn &msg) const
const int subX = msg.readInt8();
const int subY = msg.readInt8();
- if (actorSpriteManager)
+ if (actorManager)
{
- actorSpriteManager->createItem(id, itemId,
+ actorManager->createItem(id, itemId,
x, y, amount, identify, subX, subY);
}
}
@@ -66,21 +66,21 @@ void ItemHandler::processItemDropped(Net::MessageIn &msg) const
const int subY = msg.readInt8();
const int amount = msg.readInt16();
- if (actorSpriteManager)
+ if (actorManager)
{
- actorSpriteManager->createItem(id, itemId,
+ actorManager->createItem(id, itemId,
x, y, amount, identify, subX, subY);
}
}
void ItemHandler::processItemRemove(Net::MessageIn &msg) const
{
- if (actorSpriteManager)
+ if (actorManager)
{
- if (FloorItem *const item = actorSpriteManager
+ if (FloorItem *const item = actorManager
->findItem(msg.readInt32()))
{
- actorSpriteManager->destroy(item);
+ actorManager->destroy(item);
}
}
}
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index 6b2462450..73e2569ab 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -21,7 +21,7 @@
#include "net/ea/partyhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "configuration.h"
#include "notifications.h"
#include "notifymanager.h"
@@ -211,9 +211,9 @@ void PartyHandler::processPartyInvited(Net::MessageIn &msg) const
const std::string partyName = msg.readString(24);
std::string nick;
- if (actorSpriteManager)
+ if (actorManager)
{
- const Being *const being = actorSpriteManager->findBeing(id);
+ const Being *const being = actorManager->findBeing(id);
if (being)
{
if (being->getType() == Being::PLAYER)
@@ -352,9 +352,9 @@ void PartyHandler::processPartyLeave(Net::MessageIn &msg) const
else
{
NotifyManager::notify(NotifyManager::PARTY_USER_LEFT, nick);
- if (actorSpriteManager)
+ if (actorManager)
{
- Being *const b = actorSpriteManager->findBeing(id);
+ Being *const b = actorManager->findBeing(id);
if (b && b->getType() == Being::PLAYER)
{
b->setParty(nullptr);
@@ -382,9 +382,9 @@ void PartyHandler::processPartyUpdateHp(Net::MessageIn &msg) const
// The server only sends this when the member is in range, so
// lets make sure they get the party hilight.
- if (actorSpriteManager && Ea::taParty)
+ if (actorManager && Ea::taParty)
{
- if (Being *const b = actorSpriteManager->findBeing(id))
+ if (Being *const b = actorManager->findBeing(id))
b->setParty(Ea::taParty);
}
}
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 739e2397d..ab0af709e 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -22,7 +22,7 @@
#include "net/eathena/beinghandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "client.h"
#include "guild.h"
#include "guildmanager.h"
@@ -244,7 +244,7 @@ void BeingHandler::undress(Being *const being) const
void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
const bool look2) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
/*
@@ -259,7 +259,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
* 16 bit value will be 0.
*/
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (!dstBeing)
return;
@@ -379,13 +379,13 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
void BeingHandler::processNameResponse2(Net::MessageIn &msg) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
const int len = msg.readInt16();
const int beingId = msg.readInt32();
const std::string str = msg.readString(len - 8);
- Being *const dstBeing = actorSpriteManager->findBeing(beingId);
+ Being *const dstBeing = actorManager->findBeing(beingId);
if (dstBeing)
{
if (beingId == player_node->getId())
@@ -421,7 +421,7 @@ void BeingHandler::processNameResponse2(Net::MessageIn &msg) const
void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
const int msgType) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
// An update about a player, potentially including movement.
@@ -436,11 +436,11 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
if (id < 110000000 && job >= 1000)
disguiseId = job;
- Being *dstBeing = actorSpriteManager->findBeing(id);
+ Being *dstBeing = actorManager->findBeing(id);
if (!dstBeing)
{
- if (actorSpriteManager->isBlocked(id) == true)
+ if (actorManager->isBlocked(id) == true)
return;
dstBeing = createBeing(id, job);
@@ -450,7 +450,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
}
else if (disguiseId)
{
- actorSpriteManager->undelete(dstBeing);
+ actorManager->undelete(dstBeing);
if (serverVersion < 1)
requestNameById(id);
}
@@ -625,7 +625,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
const bool visible)
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
if (visible)
@@ -645,13 +645,13 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
statusEffects |= (static_cast<uint32_t>(msg.readInt16())) << 16; // option
const int16_t job = msg.readInt16(); // class
- Being *dstBeing = actorSpriteManager->findBeing(id);
+ Being *dstBeing = actorManager->findBeing(id);
if (dstBeing && dstBeing->getType() == Being::MONSTER
&& !dstBeing->isAlive())
{
- actorSpriteManager->destroy(dstBeing);
- actorSpriteManager->erase(dstBeing);
+ actorManager->destroy(dstBeing);
+ actorManager->erase(dstBeing);
dstBeing = nullptr;
}
@@ -662,7 +662,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
if (job == 0 && id >= 110000000)
return;
- if (actorSpriteManager->isBlocked(id) == true)
+ if (actorManager->isBlocked(id) == true)
return;
dstBeing = createBeing(id, job);
@@ -677,7 +677,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
{
// undeleting marked for deletion being
if (dstBeing->getType() == Being::NPC)
- actorSpriteManager->undelete(dstBeing);
+ actorManager->undelete(dstBeing);
}
if (dstBeing->getType() == Being::PLAYER)
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 63b5aaea2..7a682105f 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -21,7 +21,7 @@
#include "net/eathena/guildhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
@@ -202,10 +202,10 @@ void GuildHandler::create(const std::string &name) const
void GuildHandler::invite(const int guildId A_UNUSED,
const std::string &name A_UNUSED) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- const Being *const being = actorSpriteManager->findBeingByName(
+ const Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being)
{
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 2508c8556..8af0e4aaa 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -21,7 +21,7 @@
#include "net/eathena/partyhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "notifications.h"
#include "notifymanager.h"
@@ -120,10 +120,10 @@ void PartyHandler::invite(Being *const being) const
void PartyHandler::invite(const std::string &name) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- const Being *const being = actorSpriteManager->findBeingByName(
+ const Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being)
{
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 0f668d162..8f91371b1 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -22,7 +22,7 @@
#include "net/tmwa/beinghandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "client.h"
#include "guild.h"
#include "guildmanager.h"
@@ -245,7 +245,7 @@ void BeingHandler::undress(Being *const being) const
void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
const bool look2) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
/*
@@ -260,7 +260,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
* 16 bit value will be 0.
*/
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (!dstBeing)
return;
@@ -387,14 +387,14 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg,
void BeingHandler::processNameResponse2(Net::MessageIn &msg) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
const int len = msg.readInt16();
const int beingId = msg.readInt32();
const std::string str = msg.readString(len - 8);
- Being *const dstBeing = actorSpriteManager->findBeing(beingId);
+ Being *const dstBeing = actorManager->findBeing(beingId);
if (dstBeing)
{
if (beingId == player_node->getId())
@@ -430,7 +430,7 @@ void BeingHandler::processNameResponse2(Net::MessageIn &msg) const
void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
const int msgType) const
{
- if (!actorSpriteManager || !player_node)
+ if (!actorManager || !player_node)
return;
// An update about a player, potentially including movement.
@@ -445,10 +445,10 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
if (id < 110000000 && job >= 1000)
disguiseId = job;
- Being *dstBeing = actorSpriteManager->findBeing(id);
+ Being *dstBeing = actorManager->findBeing(id);
if (!dstBeing)
{
- if (actorSpriteManager->isBlocked(id) == true)
+ if (actorManager->isBlocked(id) == true)
return;
dstBeing = createBeing(id, job);
@@ -458,7 +458,7 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
}
else if (disguiseId)
{
- actorSpriteManager->undelete(dstBeing);
+ actorManager->undelete(dstBeing);
if (serverVersion < 1)
requestNameById(id);
}
@@ -658,7 +658,7 @@ void BeingHandler::processBeingMove3(Net::MessageIn &msg) const
static const int diry[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const int len = msg.readInt16() - 14;
- Being *const dstBeing = actorSpriteManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32());
if (!dstBeing)
return;
const int16_t speed = msg.readInt16();
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 862c437ed..60747685d 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -21,7 +21,7 @@
#include "net/tmwa/guildhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "being/localplayer.h"
#include "being/playerinfo.h"
@@ -208,10 +208,10 @@ void GuildHandler::create(const std::string &name) const
void GuildHandler::invite(const int guildId A_UNUSED,
const std::string &name) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- const Being *const being = actorSpriteManager->findBeingByName(
+ const Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being)
{
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp
index 92c79d447..d3a49d75a 100644
--- a/src/net/tmwa/partyhandler.cpp
+++ b/src/net/tmwa/partyhandler.cpp
@@ -21,7 +21,7 @@
#include "net/tmwa/partyhandler.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "notifications.h"
#include "notifymanager.h"
@@ -122,10 +122,10 @@ void PartyHandler::invite(Being *const being) const
void PartyHandler::invite(const std::string &name) const
{
- if (!actorSpriteManager)
+ if (!actorManager)
return;
- const Being *const being = actorSpriteManager->findBeingByName(
+ const Being *const being = actorManager->findBeingByName(
name, Being::PLAYER);
if (being)
{