summaryrefslogtreecommitdiff
path: root/src/controller.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 21:38:08 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 21:38:08 +0000
commit99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf (patch)
treec075dcc834e0720e6de819c7514f4fdfa7cfe554 /src/controller.cpp
parent0a74cd8c92844e730cf6f56bdc3dd578c65a10d0 (diff)
downloadmanaserv-99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf.tar.gz
manaserv-99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf.tar.bz2
manaserv-99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf.tar.xz
manaserv-99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf.zip
Implemented stat handling infrastructure and basic damage calculation.
Diffstat (limited to 'src/controller.cpp')
-rw-r--r--src/controller.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/controller.cpp b/src/controller.cpp
index d71461f2..737a01b9 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -24,6 +24,15 @@
#include "utils/logger.h"
+Controlled::Controlled(int type):
+ Being(type, 65535),
+ mCountDown(0)
+{
+ mStats.base.resize(NB_STATS_BEING, 1); //TODO: fill with the real values
+ mStats.absoluteModificator.resize(NB_STATS_BEING, 0);
+ mStats.percentModificators.resize(NB_STATS_BEING);
+}
+
void Controlled::update()
{
/* Temporary "AI" behaviour that is purely artificial and not at all
@@ -57,3 +66,10 @@ void Controlled::die()
mCountDown = 600;
Being::die();
}
+
+void Controlled::calculateStats()
+{
+ /* All base stats of a monster should be set directly by the monster
+ * database, so there is nothing we should have to calculate here.
+ */
+}