diff options
author | Kostadin Damyanov <maxmight@gmail.com> | 2015-06-18 22:48:29 +0300 |
---|---|---|
committer | Kostadin Damyanov <maxmight@gmail.com> | 2015-06-18 22:48:29 +0300 |
commit | 0038e27fc39a422601bc220d8359ff9d98fd604d (patch) | |
tree | 75e24e1959184e3dae79d73947bc615090b8b0af /scene/2d/navigation2d.h | |
parent | f10eb8ffa1a7f6bee9b5228ea1204fd93844e4cc (diff) | |
parent | 37af8b413674936518a2ebe180f9e7bfcd5795bb (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'scene/2d/navigation2d.h')
-rw-r--r-- | scene/2d/navigation2d.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scene/2d/navigation2d.h b/scene/2d/navigation2d.h index 829b0f544b..231f1e8c63 100644 --- a/scene/2d/navigation2d.h +++ b/scene/2d/navigation2d.h @@ -41,7 +41,13 @@ class Navigation2D : public Node2D { struct NavMesh; + struct Polygon; + struct ConnectionPending { + + Polygon *polygon; + int edge; + }; struct Polygon { @@ -49,7 +55,8 @@ class Navigation2D : public Node2D { Point point; Polygon *C; //connection int C_edge; - Edge() { C=NULL; C_edge=-1; } + List<ConnectionPending>::Element *P; + Edge() { C=NULL; C_edge=-1; P=NULL; } }; Vector<Edge> edges; @@ -72,6 +79,9 @@ class Navigation2D : public Node2D { int A_edge; Polygon *B; int B_edge; + + List<ConnectionPending> pending; + Connection() { A=NULL; B=NULL; A_edge=-1; B_edge=-1;} }; |