diff options
Diffstat (limited to 'src/controller.cpp')
-rw-r--r-- | src/controller.cpp | 16 |
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. + */ +} |