summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-28 17:44:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-28 17:44:08 +0300
commit4415cb66734e67dfcdf8924d354107d27fb70fee (patch)
tree55cbb5de9eaa013ac3b88efad1bba8cfef34c791 /src/animatedsprite.cpp
parent9a6810756795ee7a7ed4854ed76f5dc49ec88cc8 (diff)
downloadmanaplus-4415cb66734e67dfcdf8924d354107d27fb70fee.tar.gz
manaplus-4415cb66734e67dfcdf8924d354107d27fb70fee.tar.bz2
manaplus-4415cb66734e67dfcdf8924d354107d27fb70fee.tar.xz
manaplus-4415cb66734e67dfcdf8924d354107d27fb70fee.zip
Move delay load code from resourcemanager into separate file.
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp
index 653ce528a..1abf833fb 100644
--- a/src/animatedsprite.cpp
+++ b/src/animatedsprite.cpp
@@ -28,6 +28,7 @@
#include "resources/action.h"
#include "resources/animation.h"
+#include "resources/delayedmanager.h"
#include "resources/image.h"
#include "resources/resourcemanager.h"
#include "resources/spriteaction.h"
@@ -110,7 +111,7 @@ AnimatedSprite::~AnimatedSprite()
if (mDelayLoad)
{
mDelayLoad->clearSprite();
- ResourceManager::removeDelayLoad(mDelayLoad);
+ DelayedManager::removeDelayLoad(mDelayLoad);
delete2(mDelayLoad);
}
}
@@ -416,11 +417,11 @@ void AnimatedSprite::setDelayLoad(const std::string &filename,
if (mDelayLoad)
{
mDelayLoad->clearSprite();
- ResourceManager::removeDelayLoad(mDelayLoad);
+ DelayedManager::removeDelayLoad(mDelayLoad);
delete mDelayLoad;
}
mDelayLoad = new AnimationDelayLoad(filename, variant, this);
- ResourceManager::addDelayedAnimation(mDelayLoad);
+ DelayedManager::addDelayedAnimation(mDelayLoad);
}
void AnimatedSprite::clearDelayLoad()