From 291ad04d5b5c4ab08d85eadde116f968cd579b77 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Fri, 29 Dec 2006 13:43:24 +0000 Subject: Physically split the server into one tmwserv-acount program (account + chat + database) and multiple tmwserv-game programs (selected with respect to the maps). Cleaned the repository by moving server-specific source files into dedicated directories. --- src/being.h | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index bf35d9fc..80d5d696 100644 --- a/src/being.h +++ b/src/being.h @@ -31,7 +31,7 @@ #include "object.h" #include "utils/countedptr.h" -class Controller; +class MapComposite; /** * Element attribute for beings, actors and items. @@ -189,41 +189,32 @@ class Being : public MovingObject /** * Takes a damage structure, computes the real damage based on the * stats, deducts the result from the hitpoints and adds the result to - * the HitsTaken list + * the HitsTaken list. */ - virtual void damage(Damage); + void damage(Damage); /** - * Get the damage list + * Gets the damage list. */ - Hits getHitsTaken() const + Hits const &getHitsTaken() const { return mHitsTaken; } /** - * Clears the hit list. - * When a controller is set, updates the controller. + * Clears the damage list. */ - virtual void - update(); - - virtual void - performAttack(MapComposite*); + void clearHitsTaken() + { mHitsTaken.clear(); } /** - * Notification that this being is now possessed by the given - * controller. This means that events regarding what happens to this - * being should be send there. + * Performs an attack. */ - void - possessedBy(Controller *controller) - { mController = controller; } + void performAttack(MapComposite *); private: Being(Being const &rhs); Being &operator=(Being const &rhs); Statistics mStats; /**< stats modifiers or computed stats */ - Controller *mController; int mHitpoints; /**< Hitpoints of the being */ -- cgit v1.2.3-70-g09d2