1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

AI pathfinding: buy boat

This commit is contained in:
Andrii Danylchenko
2018-10-09 22:31:44 +03:00
parent 32c480c33d
commit 72aff02418
22 changed files with 530 additions and 223 deletions

View File

@@ -10,8 +10,9 @@
#pragma once
#include "../AIUtility.h"
#include "AINodeStorage.h"
#include "../AIUtility.h"
#include "../VCAI.h"
class AIPathfinder
{
@@ -20,9 +21,10 @@ private:
static std::map<HeroPtr, std::shared_ptr<AINodeStorage>> storageMap;
static boost::mutex storageMutex;
CPlayerSpecificInfoCallback * cb;
VCAI * ai;
public:
AIPathfinder(CPlayerSpecificInfoCallback * cb);
AIPathfinder(CPlayerSpecificInfoCallback * cb, VCAI * ai);
std::vector<AIPath> getPathInfo(HeroPtr hero, int3 tile);
void clear();
};