mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 18:46:37 +00:00
Add pathfinding interfaces, still heavily wip
This commit is contained in:
@@ -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