32 lines
946 B
C++
32 lines
946 B
C++
#ifndef NAV_MESH_MESH_H
|
|
#define NAV_MESH_MESH_H
|
|
|
|
|
|
#include <Indoor/navMesh/NavMesh.h>
|
|
#include <Indoor/navMesh/NavMeshLocation.h>
|
|
#include <Indoor/navMesh/NavMeshRandom.h>
|
|
#include <Indoor/navMesh/NavMeshFactory.h>
|
|
|
|
#include <Indoor/navMesh/walk/NavMeshWalkSimple.h>
|
|
#include <Indoor/navMesh/meta/NavMeshDijkstra.h>
|
|
|
|
/** the triangle to use with the nav-mesh */
|
|
class MyNavMeshTriangle : public NM::NavMeshTriangle, public NM::NavMeshTriangleDijkstra {
|
|
|
|
// add own parameters here
|
|
|
|
public:
|
|
|
|
MyNavMeshTriangle(const Point3 p1, const Point3 p2, const Point3 p3, uint8_t type) : NM::NavMeshTriangle(p1, p2, p3, type) {
|
|
}
|
|
|
|
};
|
|
|
|
using MyNavMeshFactory = NM::NavMeshFactory<MyNavMeshTriangle>;
|
|
using MyNavMesh = NM::NavMesh<MyNavMeshTriangle>;
|
|
using MyNavMeshLocation = NM::NavMeshLocation<MyNavMeshTriangle>;
|
|
using MyNavMeshRandom = NM::NavMeshRandom<MyNavMeshTriangle>;
|
|
using MyNavMeshWalkParams = NM::NavMeshWalkParams<MyNavMeshTriangle>;
|
|
|
|
#endif
|