diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-01 16:01:04 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-01 16:01:04 +0200 |
commit | 7307815e99a79dac42f2a9c06b0fe6171ea11ba0 (patch) | |
tree | ad41ee819dc87fc2653caf720fa7d1df30c0caeb /src/game/game.hpp | |
parent | 2bff8c999edde11270ecaf6fbd2d24f54d0e360b (diff) |
refactor: use ranges
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 13e229e..9fc5237 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -29,6 +29,7 @@ class IGenerationTracker; class IRLEReader; class IStatusManager; class IUserInputObserver; + template <typename ElementType> class IMatrix; @@ -107,7 +108,7 @@ private: std::int64_t _generations_per_second = DEFAULT_GENERATIONS_PER_SECOND; - std::list<Vector2> _living_cell_positions; + std::vector<Vector2> _living_cell_positions; void _on_normal_mode_update() noexcept; @@ -129,4 +130,6 @@ private: static void _erase_entire_line() noexcept; static void _erase_line_from_cursor() noexcept; + + void _process_next_generation() noexcept; }; |