mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-06 21:32:17 +00:00
Add pathfinding interfaces, still heavily wip
This commit is contained in:
1 parent
596e3b28b5
commit
5f1063acb9
26 files changed
+705
-1181
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include "map.h"
|
||||
#include <list>
|
||||
|
||||
class IPathfinder
|
||||
{
|
||||
public:
|
||||
typedef std::list<glm::vec3> IPath;
|
||||
|
||||
IPathfinder() { }
|
||||
virtual ~IPathfinder() { }
|
||||
|
||||
virtual IPath FindRoute(const glm::vec3 &start, const glm::vec3 &end) = 0;
|
||||
virtual glm::vec3 GetRandomLocation() = 0;
|
||||
|
||||
static IPathfinder *Load(const std::string &zone);
|
||||
};
|
||||
Reference in new issue
Block a user