mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
use default implementation of special methods
This commit is contained in:
@@ -19,10 +19,6 @@ AIhelper::AIhelper()
|
|||||||
armyManager.reset(new ArmyManager());
|
armyManager.reset(new ArmyManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
AIhelper::~AIhelper()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AIhelper::notifyGoalCompleted(Goals::TSubgoal goal)
|
bool AIhelper::notifyGoalCompleted(Goals::TSubgoal goal)
|
||||||
{
|
{
|
||||||
return resourceManager->notifyGoalCompleted(goal);
|
return resourceManager->notifyGoalCompleted(goal);
|
||||||
@@ -182,4 +178,4 @@ std::vector<SlotInfo>::iterator AIhelper::getWeakestCreature(std::vector<SlotInf
|
|||||||
std::vector<SlotInfo> AIhelper::getSortedSlots(const CCreatureSet * target, const CCreatureSet * source) const
|
std::vector<SlotInfo> AIhelper::getSortedSlots(const CCreatureSet * target, const CCreatureSet * source) const
|
||||||
{
|
{
|
||||||
return armyManager->getSortedSlots(target, source);
|
return armyManager->getSortedSlots(target, source);
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,6 @@ class DLL_EXPORT AIhelper : public IResourceManager, public IBuildingManager, pu
|
|||||||
//TODO: vector<IAbstractManager>
|
//TODO: vector<IAbstractManager>
|
||||||
public:
|
public:
|
||||||
AIhelper();
|
AIhelper();
|
||||||
~AIhelper();
|
|
||||||
|
|
||||||
bool canAfford(const TResources & cost) const;
|
bool canAfford(const TResources & cost) const;
|
||||||
TResources reservedResources() const override;
|
TResources reservedResources() const override;
|
||||||
|
@@ -201,12 +201,6 @@ Terrain::operator std::string() const
|
|||||||
Terrain::Terrain(const std::string & _name) : name(_name)
|
Terrain::Terrain(const std::string & _name) : name(_name)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Terrain& Terrain::operator=(const Terrain & _name)
|
|
||||||
{
|
|
||||||
name = _name.name;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
Terrain& Terrain::operator=(const std::string & _name)
|
Terrain& Terrain::operator=(const std::string & _name)
|
||||||
{
|
{
|
||||||
name = _name;
|
name = _name;
|
||||||
|
@@ -74,7 +74,6 @@ public:
|
|||||||
|
|
||||||
int id() const; //TODO: has to be completely removed
|
int id() const; //TODO: has to be completely removed
|
||||||
|
|
||||||
Terrain& operator=(const Terrain & _type);
|
|
||||||
Terrain& operator=(const std::string & _type);
|
Terrain& operator=(const std::string & _type);
|
||||||
|
|
||||||
DLL_LINKAGE friend bool operator==(const Terrain & l, const Terrain & r);
|
DLL_LINKAGE friend bool operator==(const Terrain & l, const Terrain & r);
|
||||||
|
Reference in New Issue
Block a user