diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-15 14:18:38 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-15 14:18:38 +0200 |
commit | 33e36451fb179d14bb4b00fb295c2f7a0874b9d5 (patch) | |
tree | d6a8fce6291e72915b3c7ab326b51ac65087bd00 /src/game-server/charactercomponent.h | |
parent | bc3530454e9456bdd58381ddf38d6ab60bd69ed6 (diff) | |
download | manaserv-33e36451fb179d14bb4b00fb295c2f7a0874b9d5.tar.gz manaserv-33e36451fb179d14bb4b00fb295c2f7a0874b9d5.tar.bz2 manaserv-33e36451fb179d14bb4b00fb295c2f7a0874b9d5.tar.xz manaserv-33e36451fb179d14bb4b00fb295c2f7a0874b9d5.zip |
Renamed sendFullStatus to markAllInfoAsChanged
Moved the actual sending of info out of update() and into sendStatus to
prevent delay issues depending on the order of the components getting
updated.
Diffstat (limited to 'src/game-server/charactercomponent.h')
-rw-r--r-- | src/game-server/charactercomponent.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game-server/charactercomponent.h b/src/game-server/charactercomponent.h index 0e5d5ffd..fe3f028d 100644 --- a/src/game-server/charactercomponent.h +++ b/src/game-server/charactercomponent.h @@ -63,10 +63,7 @@ class CharacterComponent : public Component ~CharacterComponent(); - /** - * calls Being::update and handles special recharges and status effects - */ - void update(Entity &entity); + virtual void update(Entity &entity); /** * Executes the global die script @@ -279,7 +276,7 @@ class CharacterComponent : public Component void triggerLoginCallback(Entity &entity); - void sendFullInfo(Entity &entity); + void markAllInfoAsChanged(Entity &entity); sigc::signal<void, Entity &> signal_disconnected; @@ -374,4 +371,8 @@ inline int CharacterComponent::getCorrectionPoints() const return mCorrectionPoints; } +inline void CharacterComponent::update(Entity &entity) +{ +} + #endif // CHARACTER_H |