summaryrefslogtreecommitdiff
path: root/src/controller.h
diff options
context:
space:
mode:
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;