fixed game logic
This commit is contained in:
@@ -61,10 +61,20 @@ class Game {
|
||||
|
||||
private:
|
||||
/**
|
||||
* Move the piece in the specified direction
|
||||
* Resets the piece's parameter
|
||||
*/
|
||||
void resetPiece(bool newPiece);
|
||||
|
||||
/**
|
||||
* Moves the piece in the specified direction (1 for right and -1 for left)
|
||||
*/
|
||||
void movePiece(int movement);
|
||||
|
||||
/**
|
||||
* Rotates the piece with the specified rotation
|
||||
*/
|
||||
void rotatePiece(Rotation rotation);
|
||||
|
||||
/**
|
||||
* Locks the piece, updates level and score and spawns the next piece if necessary
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user