diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 23:08:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-16 23:08:32 +0200 |
commit | a4a9c191018ad225d36665eaf33f9dbff27514c4 (patch) | |
tree | 08e4d40ebd9e84a1f7bf57a5182c659813b08bcc /src/path-search-result.hpp | |
parent | 73a15aa007307cd52432dc521364935641c15703 (diff) |
a
Diffstat (limited to 'src/path-search-result.hpp')
-rw-r--r-- | src/path-search-result.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/path-search-result.hpp b/src/path-search-result.hpp index 92484c63..ee3d017d 100644 --- a/src/path-search-result.hpp +++ b/src/path-search-result.hpp @@ -6,19 +6,19 @@ namespace floormat { +struct point; + struct path_search_result final { friend struct test_app; - struct pair { global_coords pos; Vector2 offset; }; - - const pair* data() const; - const pair& operator[](size_t index) const; + const point* data() const; + const point& operator[](size_t index) const; size_t size() const; - std::vector<pair>& path(); - const std::vector<pair>& path() const; - explicit operator ArrayView<const pair>() const; + std::vector<point>& path(); + const std::vector<point>& path() const; + explicit operator ArrayView<const point>() const; explicit operator bool() const; fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(path_search_result); @@ -39,7 +39,7 @@ private: fm_DECLARE_DELETED_COPY_ASSIGNMENT(node); fm_DECLARE_DEFAULT_MOVE_ASSIGNMENT_(node); - std::vector<pair> vec; + std::vector<point> vec; private: std::unique_ptr<node> _next; |