diff options
Diffstat (limited to 'src/game-server/effect.h')
-rw-r--r-- | src/game-server/effect.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/game-server/effect.h b/src/game-server/effect.h index 556d6acb..d4821e66 100644 --- a/src/game-server/effect.h +++ b/src/game-server/effect.h @@ -23,6 +23,7 @@ #define EFFECT_H #include "game-server/component.h" +#include "game-server/state.h" class Entity; class MapComposite; @@ -35,7 +36,7 @@ class EffectComponent : public Component EffectComponent(int id) : mEffectId(id) - , mHasBeenShown(false) + , mCreationTick(GameState::getCurrentTick()) , mBeing(0) {} @@ -50,18 +51,12 @@ class EffectComponent : public Component */ void update(Entity &entity); - /** - * Called when the object has been shown to a player in the state loop. - */ - void setShown() - { mHasBeenShown = true; } - void setBeing(Entity *b) { mBeing = b; } private: int mEffectId; - bool mHasBeenShown; + int mCreationTick; Entity *mBeing; }; |