summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-16 08:36:33 -0700
committerIra Rice <irarice@gmail.com>2009-01-16 08:36:33 -0700
commit50335c6b1470c45753d720cebdf4af830ba7a46c (patch)
treeb18dd0bbc7f11e70860a617e9db597fd243b3283 /src/being.h
parent29a65dd896255e6e173201dcc0d50bfc273afb61 (diff)
downloadmana-50335c6b1470c45753d720cebdf4af830ba7a46c.tar.gz
mana-50335c6b1470c45753d720cebdf4af830ba7a46c.tar.bz2
mana-50335c6b1470c45753d720cebdf4af830ba7a46c.tar.xz
mana-50335c6b1470c45753d720cebdf4af830ba7a46c.zip
Made emotes load in only one location, as well as fixing the code on the
being so that the last emote draws (which got broken). Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 4534b1ea..6dbcdfdd 100644
--- a/src/being.h
+++ b/src/being.h
@@ -351,6 +351,8 @@ class Being : public Sprite
*/
void controlParticle(Particle *particle);
+ AnimatedSprite* getEmote(int index) { return emotionSet[index]; }
+
void setEmote(Uint8 emotion, Uint8 emote_time)
{
mEmotion = emotion;