diff options
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r-- | src/game-server/being.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index 0e240870..d7df2df9 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -41,7 +41,8 @@ Being::Being(EntityType type): mTarget(NULL), mGender(GENDER_UNSPECIFIED), mCurrentAttack(0), - mDirection(DOWN) + mDirection(DOWN), + mEmoteId(0) { const AttributeManager::AttributeScope &attr = attributeManager->getAttributeScope(BeingScope); LOG_DEBUG("Being creation: initialisation of " << attr.size() << " attributes."); @@ -73,6 +74,14 @@ Being::Being(EntityType type): #endif } +void Being::triggerEmote(int id) +{ + mEmoteId = id; + + if (id > -1) + raiseUpdateFlags(UPDATEFLAG_EMOTE); +} + int Being::damage(Actor * /* source */, const Damage &damage) { if (mAction == DEAD) |