1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/AI/Nullkiller/Goals/BuyArmy.cpp

31 lines
684 B
C++
Raw Normal View History

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()
{
return iAmElementar();
}