1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Nullkiller: defence behavior

This commit is contained in:
Andrii Danylchenko
2021-05-16 13:53:32 +03:00
committed by Andrii Danylchenko
parent f44c3f2aaf
commit a2ac19e4ec
8 changed files with 238 additions and 3 deletions

View File

@@ -15,6 +15,7 @@
#include "../Behaviors/RecruitHeroBehavior.h"
#include "../Behaviors/BuyArmyBehavior.h"
#include "../Behaviors/StartupBehavior.h"
#include "../Behaviors/DefenceBehavior.h"
#include "../Goals/Invalid.h"
extern boost::thread_specific_ptr<CCallback> cb;
@@ -95,7 +96,8 @@ void Nullkiller::makeTurn()
Goals::TGoalVec bestTasks = {
choseBestTask(std::make_shared<BuyArmyBehavior>()),
choseBestTask(std::make_shared<CaptureObjectsBehavior>()),
choseBestTask(std::make_shared<RecruitHeroBehavior>())
choseBestTask(std::make_shared<RecruitHeroBehavior>()),
choseBestTask(std::make_shared<DefenceBehavior>())
};
if(cb->getDate(Date::DAY) == 1)