mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
29 lines
640 B
C++
29 lines
640 B
C++
#ifndef PATHFINDER_H
|
|
#define PATHFINDER_H
|
|
|
|
#include "map.h"
|
|
|
|
#include <vector>
|
|
|
|
#include <util.h>
|
|
|
|
namespace battleship{
|
|
class Vehicle;
|
|
|
|
class Pathfinder{
|
|
public:
|
|
static Pathfinder* getSingleton();
|
|
int clampDestToSourceRegion(int, int);
|
|
std::vector<float> calcHeuristics(std::vector<Map::Cell>&, int);
|
|
std::vector<int> findPath(std::vector<Map::Cell>&, std::vector<float>&, int, int, int = -1);
|
|
inline vb01::u32 getImpassibleNodeVal(){return impassibleNodeVal;}
|
|
inline void setImpassibleNodeVal(vb01::u32 val){this->impassibleNodeVal = val;}
|
|
private:
|
|
Pathfinder(){}
|
|
|
|
vb01::u32 impassibleNodeVal;
|
|
};
|
|
}
|
|
|
|
#endif
|