将 Rogue 模式逻辑拆分为独立源文件

This commit is contained in:
2026-04-25 17:13:25 +08:00
parent 045a336f49
commit 1685b5c241
4 changed files with 1892 additions and 2097 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include "Tetris.h"
extern Point pendingChainBombCenter;
extern bool pendingChainBombFollowup;
Point GetSpawnPoint(int brickType);
void ResetPlayerStats(PlayerStats& stats, bool useRogueRules);
void SetFeedbackMessage(const TCHAR* title, const TCHAR* detail, int ticks);
bool IsPiecePlacementValid(int pieceType, int pieceState, Point position);
bool IsRainbowBoardCell(int cellValue);
int TriggerMiniBlackHole(int maxCellsToClear);
int TriggerRainbowRowCompletion(int minRow, int maxRow);
int TriggerScreenBomb();
int ClearExplosiveAreaAt(int centerY, int centerX);
int ClearColumnAt(int column);
int ClearRowAt(int row);
int TryStabilizeBoard();
void RollCurrentPieceSpecialFlags(bool allowRandomSpecials);
void ResetNextQueue();
int ConsumeNextType();
void ApplyLineClearResult(int linesCleared);
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff