diff options
| author | Juan Linietsky | 2015-06-01 19:42:34 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-06-01 19:42:34 -0300 |
| commit | ab99671bb835a5fe24a092ec34afe1ad862ac254 (patch) | |
| tree | 0b7b830b03f49c0833fe0552722f20b8fdba7769 /scene/2d/navigation2d.h | |
| parent | 07a466f6e6dd28bbb8b917690b634070537f1613 (diff) | |
| download | godot-ab99671bb835a5fe24a092ec34afe1ad862ac254.tar.gz godot-ab99671bb835a5fe24a092ec34afe1ad862ac254.tar.zst godot-ab99671bb835a5fe24a092ec34afe1ad862ac254.zip | |
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 829b0f544..231f1e8c6 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;} }; |
