aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/cell_helper.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-01 16:27:15 +0200
committerHampusM <hampus@hampusmat.com>2022-07-01 16:27:15 +0200
commit0fca054fdc11dba086541e2d5a48f6f1406925dd (patch)
treebbb7e693c7c71122c0c12970a659d39081a544fd /src/interfaces/cell_helper.hpp
parent7307815e99a79dac42f2a9c06b0fe6171ea11ba0 (diff)
refactor: clarify cell helper method names
Diffstat (limited to 'src/interfaces/cell_helper.hpp')
-rw-r--r--src/interfaces/cell_helper.hpp19
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;
};