refactoring to add nav mesh

This commit is contained in:
k-a-z-u
2018-07-11 19:04:42 +02:00
parent bb974d3871
commit b4a1a3d969
27 changed files with 1581 additions and 712 deletions

View File

@@ -1,6 +1,9 @@
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QDir>
#include "misc/fixc11.h"
//#include "ipin/Scaler.h"
//#include "ipin/StepLoggerWrapper.h"
@@ -19,6 +22,11 @@ class InfoWidget;
class MapView3D;
class MapView2D;
namespace NM {
template <typename T> class NavMesh;
class NavMeshTriangle;
}
namespace Floorplan {
class IndoorMap;
}
@@ -61,9 +69,13 @@ private slots:
private:
void loadGrid(QDir dir);
void loadNavMesh(QDir dir);
MainWindow* mainWindow;
Grid<MyGridNode>* grid = nullptr;
NM::NavMesh<NM::NavMeshTriangle>* navMesh = nullptr;
NavController* nav = nullptr;
Floorplan::IndoorMap* im = nullptr;