Working on waypoint code, using boost graph libs

This commit is contained in:
KimLS
2017-07-19 19:54:26 -07:00
parent 5f1063acb9
commit c2766db89d
8 changed files with 445 additions and 7 deletions
+11 -2
View File
@@ -1,13 +1,22 @@
#pragma once
#include "pathfinder_interface.h"
#include <memory>
class PathfinderWaypoint : public IPathfinder
{
public:
PathfinderWaypoint() { }
virtual ~PathfinderWaypoint() { }
PathfinderWaypoint(const std::string &path);
virtual ~PathfinderWaypoint();
virtual IPath FindRoute(const glm::vec3 &start, const glm::vec3 &end);
virtual glm::vec3 GetRandomLocation();
virtual void DebugCommand(Client *c, const Seperator *sep);
private:
void ShowNodes();
void ShowPath(const glm::vec3 &start, const glm::vec3 &end);
struct Implementation;
std::unique_ptr<Implementation> m_impl;
};