mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Nullkiller: initial cleanup of unused code
This commit is contained in:
committed by
Andrii Danylchenko
parent
5344df51c6
commit
af0dcf97c4
@@ -26,23 +26,23 @@ bool BuildBoat::operator==(const BuildBoat & other) const
|
||||
return shipyard->o->id == other.shipyard->o->id;
|
||||
}
|
||||
|
||||
TSubgoal BuildBoat::whatToDoToAchieve()
|
||||
{
|
||||
if(cb->getPlayerRelations(ai->playerID, shipyard->o->tempOwner) == PlayerRelations::ENEMIES)
|
||||
{
|
||||
return fh->chooseSolution(ai->ah->howToVisitObj(shipyard->o));
|
||||
}
|
||||
|
||||
if(shipyard->shipyardStatus() != IShipyard::GOOD)
|
||||
{
|
||||
throw cannotFulfillGoalException("Shipyard is busy.");
|
||||
}
|
||||
|
||||
TResources boatCost;
|
||||
shipyard->getBoatCost(boatCost);
|
||||
|
||||
return ai->ah->whatToDo(boatCost, this->iAmElementar());
|
||||
}
|
||||
//TSubgoal BuildBoat::whatToDoToAchieve()
|
||||
//{
|
||||
// if(cb->getPlayerRelations(ai->playerID, shipyard->o->tempOwner) == PlayerRelations::ENEMIES)
|
||||
// {
|
||||
// return fh->chooseSolution(ai->ah->howToVisitObj(shipyard->o));
|
||||
// }
|
||||
//
|
||||
// if(shipyard->shipyardStatus() != IShipyard::GOOD)
|
||||
// {
|
||||
// throw cannotFulfillGoalException("Shipyard is busy.");
|
||||
// }
|
||||
//
|
||||
// TResources boatCost;
|
||||
// shipyard->getBoatCost(boatCost);
|
||||
//
|
||||
// return ai->ah->whatToDo(boatCost, this->iAmElementar());
|
||||
//}
|
||||
|
||||
void BuildBoat::accept(VCAI * ai)
|
||||
{
|
||||
@@ -79,8 +79,3 @@ std::string BuildBoat::name() const
|
||||
{
|
||||
return "BuildBoat";
|
||||
}
|
||||
|
||||
std::string BuildBoat::completeMessage() const
|
||||
{
|
||||
return "Boat have been built at " + shipyard->o->visitablePos().toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user