1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-27 21:49:10 +02:00

use default implementation of special methods

This commit is contained in:
Andrey Filipenkov 2022-09-22 11:12:04 +03:00
parent aae1d4fed5
commit 3616827aad
4 changed files with 1 additions and 13 deletions

View File

@ -19,10 +19,6 @@ AIhelper::AIhelper()
armyManager.reset(new ArmyManager());
}
AIhelper::~AIhelper()
{
}
bool AIhelper::notifyGoalCompleted(Goals::TSubgoal 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
{
return armyManager->getSortedSlots(target, source);
}
}

View File

@ -36,7 +36,6 @@ class DLL_EXPORT AIhelper : public IResourceManager, public IBuildingManager, pu
//TODO: vector<IAbstractManager>
public:
AIhelper();
~AIhelper();
bool canAfford(const TResources & cost) const;
TResources reservedResources() const override;

View File

@ -201,12 +201,6 @@ Terrain::operator std::string() const
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)
{
name = _name;

View File

@ -74,7 +74,6 @@ public:
int id() const; //TODO: has to be completely removed
Terrain& operator=(const Terrain & _type);
Terrain& operator=(const std::string & _type);
DLL_LINKAGE friend bool operator==(const Terrain & l, const Terrain & r);