summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:30:17 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-02 23:30:17 +0000
commitaf1ce69940a9c0b46907402e7d69e6ac9ea96912 (patch)
tree016a6a8a4734f794e56093e1611530749eb7fab0 /src/controller.h
parent07782116ae9158c20165dd4d60bdb96017ac009f (diff)
downloadmanaserv-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.h10
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;