Classes | |
| struct | ActivePiece |
| struct | Block |
| struct | BlockModel |
| struct | Cell |
| struct | HighScoreEntry |
| class | HighScores |
| struct | LockedBlock |
| struct | MultiplayerSnapshot |
| struct | PieceDefinition |
| struct | PieceQueueEntry |
| class | TetrisWindow |
Enumerations | |
| enum class | AppScreen { Intro , Menu , Game , GameOver , NetworkMultiplayer , HighScores , Credits } |
| enum class | MultiplayerMode { Idle , Hosting , Joining , Connected , Error } |
Functions | |
| std::filesystem::path | resolveScoreFilePath () |
| std::array< Block, 4 > | rotatedBlocks (const ActivePiece &piece) |
Variables | |
| const std::array< std::string, 8 > | blockTextureFiles |
| constexpr int | boardHeight = 20 |
| constexpr int | boardWidth = 10 |
| const std::array< glm::vec3, 8 > | colorTints |
| constexpr float | cubeScale = 0.085f |
| constexpr float | cubeSpacing = cubeScale * 1.0f |
| constexpr std::string_view | multiplayerPort = "37373" |
| constexpr std::size_t | nameCharacterCount = sizeof(nameCharacters) - 1 |
| constexpr char | nameCharacters [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |
| constexpr std::size_t | nameMaxLength = 10 |
| const std::array< PieceDefinition, 7 > | pieceDefinitions |
| const std::array< std::string, 8 > | textureManifests |
|
strong |
| Enumerator | |
|---|---|
| Intro | |
| Menu | |
| Game | |
| GameOver | |
| NetworkMultiplayer | |
| HighScores | |
| Credits | |
Definition at line 286 of file tetris.cpp.
|
strong |
|
nodiscard |
Definition at line 219 of file tetris.cpp.
|
nodiscard |
Definition at line 276 of file tetris.cpp.
| const std::array<std::string, 8> anonymous_namespace{tetris.cpp}::blockTextureFiles |
Definition at line 254 of file tetris.cpp.
|
constexpr |
Definition at line 40 of file tetris.cpp.
|
constexpr |
Definition at line 39 of file tetris.cpp.
| const std::array<glm::vec3, 8> anonymous_namespace{tetris.cpp}::colorTints |
Definition at line 265 of file tetris.cpp.
|
constexpr |
Definition at line 41 of file tetris.cpp.
|
constexpr |
Definition at line 42 of file tetris.cpp.
|
constexpr |
Definition at line 46 of file tetris.cpp.
|
constexpr |
Definition at line 45 of file tetris.cpp.
|
constexpr |
Definition at line 44 of file tetris.cpp.
|
constexpr |
Definition at line 43 of file tetris.cpp.
| const std::array<PieceDefinition, 7> anonymous_namespace{tetris.cpp}::pieceDefinitions |
Definition at line 233 of file tetris.cpp.
| const std::array<std::string, 8> anonymous_namespace{tetris.cpp}::textureManifests |
Definition at line 243 of file tetris.cpp.