diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:30:17 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-02 23:30:17 +0000 |
commit | af1ce69940a9c0b46907402e7d69e6ac9ea96912 (patch) | |
tree | 016a6a8a4734f794e56093e1611530749eb7fab0 /src/controller.h | |
parent | 07782116ae9158c20165dd4d60bdb96017ac009f (diff) | |
download | manaserv-af1ce69940a9c0b46907402e7d69e6ac9ea96912.tar.gz manaserv-af1ce69940a9c0b46907402e7d69e6ac9ea96912.tar.bz2 manaserv-af1ce69940a9c0b46907402e7d69e6ac9ea96912.tar.xz manaserv-af1ce69940a9c0b46907402e7d69e6ac9ea96912.zip |
Implemented being death, removal of dead mobs and sitting.
Diffstat (limited to 'src/controller.h')
-rw-r--r-- | src/controller.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/controller.h b/src/controller.h index adbc54a7..40e4b22b 100644 --- a/src/controller.h +++ b/src/controller.h @@ -34,13 +34,21 @@ class Controlled: public Being /** * Constructor. */ - Controlled(int type): Being(type, 65535), mCountDown(0) {} + Controlled(int type): + Being(type, 65535), + mCountDown(0) + {} /** * Performs one step of controller logic. */ void update(); + /** + * Kills the being + */ + virtual void die(); + private: /** Count down till next random movement (temporary). */ unsigned int mCountDown; |