summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-03 23:50:35 -0400
committerChuck Miller <shadowmil@gmail.com>2010-11-07 23:26:37 -0500
commitc81b3c269e39700be94fd9e2629b0bdfb0d093f8 (patch)
treec4dbca3f9dbb288151fec3171089e12295d33e04 /src/being.cpp
parent671a465fa2c9469bde36b78c49e84bd0325c4cf1 (diff)
downloadmana-client-c81b3c269e39700be94fd9e2629b0bdfb0d093f8.tar.gz
mana-client-c81b3c269e39700be94fd9e2629b0bdfb0d093f8.tar.bz2
mana-client-c81b3c269e39700be94fd9e2629b0bdfb0d093f8.tar.xz
mana-client-c81b3c269e39700be94fd9e2629b0bdfb0d093f8.zip
Convert the emote system to use particles
Reviewed-by: Jared Adams
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 585e7352..95f2ecdd 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -80,7 +80,6 @@ Being::Being(int id, Type type, int subtype, Map *map):
ActorSprite(id),
mInfo(BeingInfo::Unknown),
mActionTime(0),
- mEmotion(0), mEmotionTime(0),
mSpeechTime(0),
mAttackType(1),
mAttackSpeed(350),
@@ -869,13 +868,6 @@ void Being::logic()
mY * 32 + 32 + getYOffset());
}
- if (mEmotion != 0)
- {
- mEmotionTime--;
- if (mEmotionTime == 0)
- mEmotion = 0;
- }
-
ActorSprite::logic();
int frameCount = getFrameCount();
@@ -891,19 +883,6 @@ void Being::logic()
}
}
-void Being::drawEmotion(Graphics *graphics, int offsetX, int offsetY)
-{
- if (!mEmotion)
- return;
-
- const int px = getPixelX() - offsetX - 16;
- const int py = getPixelY() - offsetY - 64 - 32;
- const int emotionIndex = mEmotion - 1;
-
- if (emotionIndex >= 0 && emotionIndex <= EmoteDB::getLast())
- EmoteDB::getAnimation(emotionIndex)->draw(graphics, px, py);
-}
-
void Being::drawSpeech(int offsetX, int offsetY)
{
const int px = getPixelX() - offsetX;