mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
replace set_avoided_tags with avoid_tag & add 'cost' argument
This commit is contained in:
parent
3c9c4c403c
commit
c06636053d
6 changed files with 44 additions and 33 deletions
|
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue