1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

consistent renaming of ai into aiGw or aiNk and cbc

This commit is contained in:
Mircea TheHonestCTO
2025-08-15 18:58:14 +02:00
parent 6692df58da
commit 6b6298fa33
18 changed files with 32 additions and 32 deletions

View File

@@ -66,11 +66,11 @@ bool canUseOpenMap(std::shared_ptr<CCallback> cb, PlayerColor playerID)
return !hasHumanInTeam;
}
void Nullkiller::init(std::shared_ptr<CCallback> cb, AIGateway * gateway)
void Nullkiller::init(std::shared_ptr<CCallback> cb, AIGateway * aiGw)
{
this->cbc = cb;
this->gateway = gateway;
this->playerID = gateway->playerID;
this->aiGw = aiGw;
this->playerID = aiGw->playerID;
settings = std::make_unique<Settings>(cb->getStartInfo()->difficulty);
@@ -562,7 +562,7 @@ bool Nullkiller::executeTask(Goals::TTask task)
try
{
task->accept(gateway);
task->accept(aiGw);
logAi->trace("Task %s completed in %lld", taskDescr, timeElapsed(start));
}
catch(goalFulfilledException &)