add pathfinding.set_avoided_tags
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <glm/vec3.hpp>
|
||||
#include <memory>
|
||||
#include <queue>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
@@ -60,6 +61,7 @@ namespace voxels {
|
||||
glm::ivec3 target;
|
||||
Route route;
|
||||
State state {};
|
||||
std::set<int> avoidTags;
|
||||
};
|
||||
|
||||
class Pathfinding {
|
||||
@@ -84,8 +86,8 @@ namespace voxels {
|
||||
std::unordered_map<int, Agent> agents;
|
||||
int nextAgent = 1;
|
||||
|
||||
int getSurfaceAt(const glm::ivec3& pos, int maxDelta);
|
||||
int getSurfaceAt(const Agent& agent, const glm::ivec3& pos, int maxDelta);
|
||||
|
||||
int checkPoint(int x, int y, int z);
|
||||
int checkPoint(const Agent& agent, int x, int y, int z);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user