From 99f34a8a72f63b4bd9fc2f3c370c8cbe9b9127cf Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 11 Mar 2007 21:38:08 +0000 Subject: Implemented stat handling infrastructure and basic damage calculation. --- src/controller.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/controller.cpp') 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. + */ +} -- cgit v1.2.3-70-g09d2