MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
anonymous_namespace{tetris.cpp}::MultiplayerSnapshot Struct Reference

Public Member Functions

 MultiplayerSnapshot ()

Public Attributes

std::array< Block, 4 > activeBlocks {}
int activeColor = 7
int activeX = 0
int activeY = 0
std::array< std::array< int, boardWidth >, boardHeightcells {}
bool gameOver = false
bool hasState = false
int level = 1
int lines = 0
int score = 0

Detailed Description

Definition at line 90 of file tetris.cpp.

Constructor & Destructor Documentation

◆ MultiplayerSnapshot()

anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::MultiplayerSnapshot ( )
inline

Definition at line 102 of file tetris.cpp.

102 {
103 for (auto &row : cells) {
104 row.fill(-1);
105 }
106 }
std::array< std::array< int, boardWidth >, boardHeight > cells
Definition tetris.cpp:91

Member Data Documentation

◆ activeBlocks

std::array<Block, 4> anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::activeBlocks {}

Definition at line 92 of file tetris.cpp.

92{};

◆ activeColor

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::activeColor = 7

Definition at line 95 of file tetris.cpp.

◆ activeX

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::activeX = 0

Definition at line 93 of file tetris.cpp.

◆ activeY

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::activeY = 0

Definition at line 94 of file tetris.cpp.

◆ cells

std::array<std::array<int, boardWidth>, boardHeight> anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::cells {}

Definition at line 91 of file tetris.cpp.

91{};

◆ gameOver

bool anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::gameOver = false

Definition at line 99 of file tetris.cpp.

◆ hasState

bool anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::hasState = false

Definition at line 100 of file tetris.cpp.

◆ level

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::level = 1

Definition at line 98 of file tetris.cpp.

◆ lines

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::lines = 0

Definition at line 97 of file tetris.cpp.

◆ score

int anonymous_namespace{tetris.cpp}::MultiplayerSnapshot::score = 0

Definition at line 96 of file tetris.cpp.


The documentation for this struct was generated from the following file: