Definition at line 69 of file puzzle_drop.cpp.
◆ move_down()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::move_down |
( |
| ) |
|
|
inline |
Definition at line 105 of file puzzle_drop.cpp.
105 {
106 for (Block &block :
blocks) {
107 ++block.y;
108 }
109 }
std::array< Block, 3 > blocks
◆ move_left()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::move_left |
( |
| ) |
|
|
inline |
◆ move_right()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::move_right |
( |
| ) |
|
|
inline |
◆ new_piece()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::new_piece |
( |
int | start_x, |
|
|
int | start_y, |
|
|
std::mt19937 & | rng ) |
|
inline |
Definition at line 73 of file puzzle_drop.cpp.
73 {
74 blocks[0] = {start_x, start_y, random_type(rng)};
75 blocks[1] = {start_x, start_y + 1, random_type(rng)};
76 blocks[2] = {start_x, start_y + 2, random_type(rng)};
78 }
◆ rotate_left()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::rotate_left |
( |
| ) |
|
|
inline |
◆ rotate_right()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::rotate_right |
( |
| ) |
|
|
inline |
◆ shift()
| void anonymous_namespace{puzzle_drop.cpp}::Piece::shift |
( |
ShiftDirection | direction | ) |
|
|
inline |
◆ blocks
| std::array<Block, 3> anonymous_namespace{puzzle_drop.cpp}::Piece::blocks {} |
◆ position
| int anonymous_namespace{puzzle_drop.cpp}::Piece::position = 0 |
The documentation for this struct was generated from the following file: