From 6f3590341312b0ffff2304d02b24ac6a5d14b182 Mon Sep 17 00:00:00 2001 From: fschildt Date: Thu, 9 Oct 2025 16:13:28 +0200 Subject: tetris: optimize next tetromino, fix first count --- src/games/tetris/Tetris.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/games/tetris/Tetris.hpp') diff --git a/src/games/tetris/Tetris.hpp b/src/games/tetris/Tetris.hpp index b3ace1d..5dd6fde 100644 --- a/src/games/tetris/Tetris.hpp +++ b/src/games/tetris/Tetris.hpp @@ -8,7 +8,7 @@ class Tetris : public Game { public: - Tetris() = default; + Tetris(); bool Update(std::vector &events) override; void HandleTetrominoPlacement(); @@ -37,7 +37,7 @@ private: private: Board m_board; Tetromino m_active_tetromino; - Tetromino m_next_tetromino; + Tetromino::Id m_next_tetromino_id; int32_t m_tetromino_counters[Tetromino::id_count] {}; int32_t m_score = 0; @@ -45,7 +45,6 @@ private: int32_t m_starting_level = 0; int32_t m_level = 0; int32_t m_softdrop_counter = 0; - int32_t m_highscore = 0; }; -- cgit v1.2.3