replace set_avoided_tags with avoid_tag & add 'cost' argument

This commit is contained in:
MihailRis 2025-08-31 21:12:07 +03:00
parent 3c9c4c403c
commit c06636053d
6 changed files with 44 additions and 33 deletions

View file

@ -61,7 +61,7 @@ namespace voxels {
glm::ivec3 target;
Route route;
State state {};
std::set<int> avoidTags;
std::set<std::pair<int, int>> avoidTags;
};
class Pathfinding {
@ -90,6 +90,6 @@ namespace voxels {
const Agent& agent, const glm::ivec3& pos, int maxDelta, float& cost
);
int checkPoint(const Agent& agent, int x, int y, int z);
int checkPoint(const Agent& agent, int x, int y, int z, int& cost);
};
}