1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

cloned Nullkiller into Nullkiller2

This commit is contained in:
Mircea TheHonestCTO
2025-08-13 14:41:15 +02:00
parent a6df82c616
commit ffad6c6a43
249 changed files with 23306 additions and 377 deletions

View File

@@ -19,17 +19,17 @@ namespace NKAI
namespace AIPathfinding
{
bool QuestAction::canAct(const Nullkiller * ai, const AIPathNode * node) const
bool QuestAction::canAct(const Nullkiller2 * ai, const AIPathNode * node) const
{
return canAct(ai, node->actor->hero);
}
bool QuestAction::canAct(const Nullkiller * ai, const AIPathNodeInfo & node) const
bool QuestAction::canAct(const Nullkiller2 * ai, const AIPathNodeInfo & node) const
{
return canAct(ai, node.targetHero);
}
bool QuestAction::canAct(const Nullkiller * ai, const CGHeroInstance * hero) const
bool QuestAction::canAct(const Nullkiller2 * ai, const CGHeroInstance * hero) const
{
auto object = questInfo.getObject(ai->cb.get());
auto quest = questInfo.getQuest(ai->cb.get());
@@ -45,7 +45,7 @@ namespace AIPathfinding
|| quest->checkQuest(hero);
}
Goals::TSubgoal QuestAction::decompose(const Nullkiller * ai, const CGHeroInstance * hero) const
Goals::TSubgoal QuestAction::decompose(const Nullkiller2 * ai, const CGHeroInstance * hero) const
{
return Goals::sptr(Goals::CompleteQuest(questInfo));
}