2021-05-15 18:22:44 +02:00
|
|
|
/*
|
|
|
|
* BuyArmy.cpp, part of VCMI engine
|
|
|
|
*
|
|
|
|
* Authors: listed in file AUTHORS in main folder
|
|
|
|
*
|
|
|
|
* License: GNU General Public License v2.0 or later
|
|
|
|
* Full text of license available in license.txt file, in main folder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#include "StdInc.h"
|
|
|
|
#include "BuyArmy.h"
|
|
|
|
#include "../FuzzyHelper.h"
|
|
|
|
#include "../AIhelper.h"
|
2021-05-15 20:57:44 +02:00
|
|
|
#include "../../../lib/mapObjects/CGTownInstance.h"
|
2021-05-15 18:22:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
extern boost::thread_specific_ptr<CCallback> cb;
|
|
|
|
extern boost::thread_specific_ptr<VCAI> ai;
|
|
|
|
extern FuzzyHelper * fh;
|
|
|
|
|
|
|
|
using namespace Goals;
|
|
|
|
|
|
|
|
bool BuyArmy::operator==(const BuyArmy & other) const
|
|
|
|
{
|
|
|
|
return town == other.town && objid == other.objid;
|
|
|
|
}
|
|
|
|
|
|
|
|
TSubgoal BuyArmy::whatToDoToAchieve()
|
|
|
|
{
|
2019-12-15 15:47:21 +02:00
|
|
|
return iAmElementar();
|
|
|
|
}
|