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/game.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/game.hpp') 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 class IMatrix; @@ -107,7 +108,7 @@ private: std::int64_t _generations_per_second = DEFAULT_GENERATIONS_PER_SECOND; - std::list _living_cell_positions; + std::vector _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; }; -- cgit v1.2.3-18-g5258