mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
27 lines
540 B
C++
27 lines
540 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();
|
|
std::vector<int> findPath(std::vector<Map::Cell>&, std::vector<float>&, int, int, Vehicle* = nullptr);
|
|
inline vb01::u32 getImpassibleNodeVal(){return impassibleNodeVal;}
|
|
inline void setImpassibleNodeVal(vb01::u32 val){this->impassibleNodeVal = val;}
|
|
private:
|
|
Pathfinder(){}
|
|
|
|
vb01::u32 impassibleNodeVal;
|
|
};
|
|
}
|
|
|
|
#endif
|