50 #ifndef VSI_WAYFIND_HH 51 #define VSI_WAYFIND_HH 57 #include <QLinkedList> 94 Node (
unsigned int _counter);
99 unsigned int counter_;
130 QPoint validPos (
unsigned int _dir,
int _step, QPoint _pnt);
133 int heuristicDistance (
const QPoint &_from,
const QPoint &_to)
const;
142 unsigned int counter_;
144 QLinkedList<Node *> nodes_;
145 QHash<QPair<int, int>,
Node*> map_;
QPolygonF findWay(Connection *_conn, QPoint _from, QPoint _to)
Finds a way from _from to _to ignoring any already existent connections from _conn.
WayFind(GraphicsScene *_scene)
Constructor.