minor fixes
This commit is contained in:
@ -76,6 +76,8 @@ public:
|
||||
void updateElapsedTime(); // Update elapsed time from system clock
|
||||
bool isSoftDropping() const { return softDropping; }
|
||||
const std::array<std::optional<AsteroidCell>, COLS*ROWS>& asteroidCells() const { return asteroidGrid; }
|
||||
const std::vector<SDL_Point>& getRecentAsteroidExplosions() const { return recentAsteroidExplosions; }
|
||||
void clearRecentAsteroidExplosions() { recentAsteroidExplosions.clear(); }
|
||||
|
||||
// Block statistics
|
||||
const std::array<int, PIECE_COUNT>& getBlockCounts() const { return blockCounts; }
|
||||
@ -181,6 +183,9 @@ private:
|
||||
std::optional<AsteroidType> pendingAsteroidDestroyType;
|
||||
bool asteroidDestroySoundPreplayed{false};
|
||||
|
||||
// Recent asteroid explosion positions (grid coords) for renderer FX
|
||||
std::vector<SDL_Point> recentAsteroidExplosions;
|
||||
|
||||
// Internal helpers ----------------------------------------------------
|
||||
void refillBag();
|
||||
void spawn();
|
||||
|
||||
Reference in New Issue
Block a user