diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-25 16:19:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-25 16:19:02 +0200 |
commit | 696b97147c2e399be7a95cc5a983294eebc84ff0 (patch) | |
tree | d49b2da4fc656867f9ea007a43935001078d022e /src/game/cell_helper.hpp | |
parent | ca3765ccbbcaee691d71e4f995ff639682d7346f (diff) |
refactor: make cell helper find_neighbour_cells return std::vector
Diffstat (limited to 'src/game/cell_helper.hpp')
-rw-r--r-- | src/game/cell_helper.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/cell_helper.hpp b/src/game/cell_helper.hpp index f76497a..ee5ab27 100644 --- a/src/game/cell_helper.hpp +++ b/src/game/cell_helper.hpp @@ -7,6 +7,7 @@ #include <list> #include <memory> +#include <vector> template <typename MatrixElement> class CellHelper : public ICellHelper @@ -22,7 +23,7 @@ public: -> std::list<Vector2> override; [[nodiscard]] auto find_neighbours(const Vector2 &cell_pos) const noexcept - -> std::list<Vector2> override; + -> std::vector<Vector2> override; private: const IMatrix<MatrixElement> &_matrix; |