From 7307815e99a79dac42f2a9c06b0fe6171ea11ba0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 1 Jul 2022 16:01:04 +0200 Subject: refactor: use ranges --- src/game/cell_helper.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/game/cell_helper.hpp') diff --git a/src/game/cell_helper.hpp b/src/game/cell_helper.hpp index cf84a75..c54b12e 100644 --- a/src/game/cell_helper.hpp +++ b/src/game/cell_helper.hpp @@ -5,7 +5,6 @@ #include "engine/data/vector2.hpp" -#include #include #include @@ -19,17 +18,17 @@ public: -> bool override; [[nodiscard]] auto - get_birth_cell_positions(const std::list &cell_positions) const noexcept - -> std::list override; + get_birth_cell_positions(const std::vector &cell_positions) const noexcept + -> std::vector override; [[nodiscard]] auto find_neighbours(const Vector2 &cell_pos) const noexcept -> std::vector override; private: - std::shared_ptr> _matrix; + const std::shared_ptr> _matrix; static auto _get_position_neighbours(const Vector2 &position) noexcept - -> std::list; + -> std::vector; }; #include "cell_helper_impl.hpp" -- cgit v1.2.3-18-g5258