summaryrefslogtreecommitdiff
path: root/src/game-server/being.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-05-18 13:32:34 +0200
committerYohann Ferreira <yohann_ferreira_at_orange_fr_>2013-02-01 21:33:43 +0100
commit02602a6a7bb92fbe19b7a015f5c6764ab658c469 (patch)
treec7f53a585671036174b76f046e48e8f872846b50 /src/game-server/being.h
parent5c7bf62ca3204c6f8b91f1bd9178cb638e184f5a (diff)
downloadmanaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.gz
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.bz2
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.tar.xz
manaserv-02602a6a7bb92fbe19b7a015f5c6764ab658c469.zip
Added emote support.
Diffstat (limited to 'src/game-server/being.h')
-rw-r--r--src/game-server/being.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game-server/being.h b/src/game-server/being.h
index a08df018..d5a73588 100644
--- a/src/game-server/being.h
+++ b/src/game-server/being.h
@@ -299,6 +299,17 @@ class Being : public Actor
sigc::signal<void, Being *> signal_died;
+ /**
+ * Activate an emote flag on the being.
+ */
+ void triggerEmote(int id);
+
+ /**
+ * Tells the last emote used.
+ */
+ int getLastEmote() const
+ { return mEmoteId; }
+
protected:
/**
* Performs an attack
@@ -342,6 +353,9 @@ class Being : public Actor
/** Time until hp is regenerated again */
Timeout mHealthRegenerationTimeout;
+
+ /** The last being emote Id. Used when triggering a being emoticon. */
+ int mEmoteId;
};
#endif // BEING_H