From 0fca054fdc11dba086541e2d5a48f6f1406925dd Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 1 Jul 2022 16:27:15 +0200 Subject: refactor: clarify cell helper method names --- src/interfaces/cell_helper.hpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'src/interfaces') 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 - #include #include +#include + +#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 &cell_positions) const noexcept - -> std::vector = 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 &cell_positions) const noexcept -> std::vector = 0; }; -- cgit v1.2.3-18-g5258