diff options
Diffstat (limited to 'src/game-server/effect.h')
-rw-r--r-- | src/game-server/effect.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game-server/effect.h b/src/game-server/effect.h index 4ac63611..4c355d67 100644 --- a/src/game-server/effect.h +++ b/src/game-server/effect.h @@ -24,7 +24,8 @@ #include "game-server/component.h" -class Being; +class Actor; +class Entity; class MapComposite; class Point; @@ -42,7 +43,7 @@ class EffectComponent : public Component int getEffectId() const { return mEffectId; } - Being *getBeing() const + Entity *getBeing() const { return mBeing; } /** @@ -56,13 +57,13 @@ class EffectComponent : public Component void setShown() { mHasBeenShown = true; } - void setBeing(Being *b) + void setBeing(Entity *b) { mBeing = b; } private: int mEffectId; bool mHasBeenShown; - Being *mBeing; + Entity *mBeing; }; @@ -72,7 +73,7 @@ namespace Effects * Convenience methods to show an effect. */ void show(int id, MapComposite *map, const Point &pos); - void show(int id, Being *b); + void show(int id, Actor *b); // TODO: get this in sync with effects.xml enum { |