diff --git a/Board.h b/Board.h index f67f642..d0a2d13 100644 --- a/Board.h +++ b/Board.h @@ -212,6 +212,7 @@ void calculateNearbyBombs(){ bool getAllOpen(){ return allOpen; } + sf::Sprite getFlag(int i, int j){ return board[i][j]->flagSprite.sprite; } diff --git a/Leaderboard.h b/Leaderboard.h index 74663b2..f4e4fe8 100644 --- a/Leaderboard.h +++ b/Leaderboard.h @@ -60,6 +60,7 @@ class LeaderBoard : public Button { if (event.type == sf::Event::Closed) { window.close(); } + sf::Text leaderBoardLine = drawWord("LeaderBoard", numOfCols*8, numOfRows*8-120, 20); sf::Text leaderBoardContents = drawWord(leaderBoard, numOfCols*8, numOfRows*8 + 20, 18); window.clear(sf::Color::Blue);