summaryrefslogtreecommitdiff
path: root/src/game.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/game.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/game.cpp')
-rw-r--r--src/game.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 262d1bb69..9b6b5a339 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -24,7 +24,7 @@
#include "main.h"
-#include "actorspritemanager.h"
+#include "actormanager.h"
#include "auctionmanager.h"
#include "animatedsprite.h"
#include "client.h"
@@ -150,7 +150,7 @@ SocialWindow *socialWindow = nullptr;
QuestsWindow *questsWindow = nullptr;
WindowMenu *windowMenu = nullptr;
-ActorSpriteManager *actorSpriteManager = nullptr;
+ActorManager *actorManager = nullptr;
CommandHandler *commandHandler = nullptr;
#ifdef USE_MUMBLE
MumbleManager *mumbleManager = nullptr;
@@ -176,7 +176,7 @@ const unsigned adjustDelay = 10;
*/
static void initEngines()
{
- actorSpriteManager = new ActorSpriteManager;
+ actorManager = new ActorManager;
commandHandler = new CommandHandler;
effectManager = new EffectManager;
AuctionManager::init();
@@ -441,8 +441,8 @@ Game::Game():
initEngines();
// Initialize beings
- if (actorSpriteManager)
- actorSpriteManager->setPlayer(player_node);
+ if (actorManager)
+ actorManager->setPlayer(player_node);
Net::getGameHandler()->ping(tick_time);
@@ -467,7 +467,7 @@ Game::~Game()
AnimatedSprite::setEnableCache(false);
- del_0(actorSpriteManager)
+ del_0(actorManager)
if (client->getState() != STATE_CHANGE_MAP)
del_0(player_node)
del_0(commandHandler)
@@ -578,8 +578,8 @@ void Game::logic()
// Handle all necessary game logic
ActorSprite::actorLogic();
- if (actorSpriteManager)
- actorSpriteManager->logic();
+ if (actorManager)
+ actorManager->logic();
if (particleEngine)
particleEngine->update();
if (mCurrentMap)
@@ -955,8 +955,8 @@ void Game::changeMap(const std::string &mapPath)
viewport->clearPopup();
// Clean up floor items, beings and particles
- if (actorSpriteManager)
- actorSpriteManager->clear();
+ if (actorManager)
+ actorManager->clear();
// Close the popup menu on map change so that invalid options can't be
// executed.
@@ -996,11 +996,11 @@ void Game::changeMap(const std::string &mapPath)
if (socialWindow)
socialWindow->setMap(newMap);
- // Notify the minimap and actorSpriteManager about the map change
+ // Notify the minimap and actorManager about the map change
if (minimap)
minimap->setMap(newMap);
- if (actorSpriteManager)
- actorSpriteManager->setMap(newMap);
+ if (actorManager)
+ actorManager->setMap(newMap);
if (particleEngine)
particleEngine->setMap(newMap);
if (viewport)