summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-21 21:56:12 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-03-21 21:56:12 +0000
commit823aa330987205b251d9f662cfdd4c39149c6ec7 (patch)
tree55e78b4621bfc867b5ff1ecee101d46a6d7169e2 /src/being.cpp
parent9d51b2e1077042ae42d42a0e6314e439c62e2925 (diff)
downloadmana-client-823aa330987205b251d9f662cfdd4c39149c6ec7.tar.gz
mana-client-823aa330987205b251d9f662cfdd4c39149c6ec7.tar.bz2
mana-client-823aa330987205b251d9f662cfdd4c39149c6ec7.tar.xz
mana-client-823aa330987205b251d9f662cfdd4c39149c6ec7.zip
Renamed Spriteset to ImageSet.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 03129c61..930c2d24 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -32,7 +32,7 @@
#include "map.h"
#include "resources/resourcemanager.h"
-#include "resources/spriteset.h"
+#include "resources/imageset.h"
#include "gui/gui.h"
@@ -40,7 +40,7 @@
#include "utils/tostring.h"
int Being::instances = 0;
-Spriteset *Being::emotionset = NULL;
+ImageSet *Being::emotionSet = NULL;
Being::Being(Uint32 id, Uint16 job, Map *map):
mJob(job),
@@ -69,8 +69,8 @@ Being::Being(Uint32 id, Uint16 job, Map *map):
{
// Load the emotion set
ResourceManager *rm = ResourceManager::getInstance();
- emotionset = rm->getSpriteset("graphics/sprites/emotions.png", 30, 32);
- if (!emotionset) logger->error("Unable to load emotions spriteset!");
+ emotionSet = rm->getImageSet("graphics/sprites/emotions.png", 30, 32);
+ if (!emotionSet) logger->error("Unable to load emotions!");
}
instances++;
@@ -86,8 +86,8 @@ Being::~Being()
if (instances == 0)
{
- emotionset->decRef();
- emotionset = NULL;
+ emotionSet->decRef();
+ emotionSet = NULL;
}
}
@@ -371,7 +371,7 @@ Being::drawEmotion(Graphics *graphics, Sint32 offsetX, Sint32 offsetY)
int px = mPx + offsetX + 3;
int py = mPy + offsetY - 60;
- graphics->drawImage(emotionset->get(mEmotion - 1), px, py);
+ graphics->drawImage(emotionSet->get(mEmotion - 1), px, py);
}
void