summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-27 22:55:37 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-27 22:55:37 +0000
commite7a3a5bb9df0609a76323b8e2546a7a02fcebc81 (patch)
treedb87045389c8985cf3add6bda2992be43a0a2a51 /src/being.cpp
parent1e564be8f7a7339422f48ebbf98c5fb14544a96d (diff)
downloadmanaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.gz
manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.bz2
manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.tar.xz
manaserv-e7a3a5bb9df0609a76323b8e2546a7a02fcebc81.zip
Added a Controller class meant to implement behaviour loosely coupled to the
actual being. Used it to control 10 testing maggots that are now randomly walking around.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
new file mode 100644
index 00000000..512d682b
--- /dev/null
+++ b/src/being.cpp
@@ -0,0 +1,33 @@
+/*
+ * The Mana World Server
+ * Copyright 2004 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or any later version.
+ *
+ * The Mana World is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with The Mana World; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id$
+ */
+
+#include "being.h"
+
+#include "controller.h"
+
+#include "utils/logger.h"
+
+void Being::update()
+{
+ if (mController)
+ mController->update();
+}