const everywhere + légèrement changer format fichiers
This commit is contained in:
@@ -61,7 +61,7 @@ class Game {
|
||||
|
||||
private:
|
||||
/**
|
||||
* Movse the piece in the specified direction
|
||||
* Move the piece in the specified direction
|
||||
*/
|
||||
void movePiece(int movement, bool resetDirection);
|
||||
|
||||
@@ -74,65 +74,65 @@ class Game {
|
||||
/**
|
||||
* @return If the player has won
|
||||
*/
|
||||
bool hasWon();
|
||||
bool hasWon() const;
|
||||
|
||||
/**
|
||||
* @return If the player has lost
|
||||
*/
|
||||
bool hasLost();
|
||||
bool hasLost() const;
|
||||
|
||||
/**
|
||||
* @return The current level
|
||||
*/
|
||||
int getLevel();
|
||||
int getLevel() const;
|
||||
|
||||
/**
|
||||
* @return The current number of cleared lines
|
||||
*/
|
||||
int getClearedLines();
|
||||
int getClearedLines() const;
|
||||
|
||||
/**
|
||||
* @return The number of frames passed since the start of the game
|
||||
*/
|
||||
int getFramesPassed();
|
||||
int getFramesPassed() const;
|
||||
|
||||
/**
|
||||
* @return The current score
|
||||
*/
|
||||
int getScore();
|
||||
int getScore() const;
|
||||
|
||||
/**
|
||||
* @return If the player is currently on a B2B chain
|
||||
*/
|
||||
bool isOnB2BChain();
|
||||
bool isOnB2BChain() const;
|
||||
|
||||
/**
|
||||
* @return If all blocks are currently bone blocks
|
||||
*/
|
||||
bool areBlocksBones();
|
||||
bool areBlocksBones() const;
|
||||
|
||||
/**
|
||||
* @return A copy of the board
|
||||
*/
|
||||
Board getBoard();
|
||||
Board getBoard() const;
|
||||
|
||||
/**
|
||||
* @return A copy of the active piece
|
||||
*/
|
||||
Piece getActivePiece();
|
||||
Piece getActivePiece() const;
|
||||
|
||||
/**
|
||||
* @return A copy of the active piece position
|
||||
*/
|
||||
Position getActivePiecePosition();
|
||||
Position getActivePiecePosition() const;
|
||||
|
||||
/**
|
||||
* @return A copy of the held piece
|
||||
*/
|
||||
Piece getHeldPiece();
|
||||
Piece getHeldPiece() const;
|
||||
|
||||
/**
|
||||
* @return A copy of the next pieces queue
|
||||
*/
|
||||
std::vector<Piece> getNextPieces();
|
||||
std::vector<Piece> getNextPieces() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user