diff options
Diffstat (limited to 'src/interfaces/cell_helper.hpp')
-rw-r--r-- | src/interfaces/cell_helper.hpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/interfaces/cell_helper.hpp b/src/interfaces/cell_helper.hpp index 38e214d..bcc0a89 100644 --- a/src/interfaces/cell_helper.hpp +++ b/src/interfaces/cell_helper.hpp @@ -1,13 +1,11 @@ #pragma once -#include "interfaces/matrix.hpp" - -#include "engine/data/vector2.hpp" - -#include <yacppdic/factory.hpp> - #include <memory> #include <vector> +#include <yacppdic/factory.hpp> + +#include "engine/data/vector2.hpp" +#include "interfaces/matrix.hpp" // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class ICellHelper @@ -15,14 +13,11 @@ class ICellHelper public: virtual ~ICellHelper() noexcept = default; - [[nodiscard]] virtual auto is_cell_dying(const Vector2 &cell_pos) const noexcept - -> bool = 0; - [[nodiscard]] virtual auto - get_birth_cell_positions(const std::vector<Vector2> &cell_positions) const noexcept - -> std::vector<Vector2> = 0; + compute_is_cell_dying(const Vector2 &cell_pos) const noexcept -> bool = 0; - [[nodiscard]] virtual auto find_neighbours(const Vector2 &cell_pos) const noexcept + [[nodiscard]] virtual auto compute_birth_cell_positions( + const std::vector<Vector2> &cell_positions) const noexcept -> std::vector<Vector2> = 0; }; |