diff options
Diffstat (limited to 'src/View/MainWindow.hpp')
| -rw-r--r-- | src/View/MainWindow.hpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/View/MainWindow.hpp b/src/View/MainWindow.hpp index aabdb09..729b961 100644 --- a/src/View/MainWindow.hpp +++ b/src/View/MainWindow.hpp @@ -13,19 +13,28 @@ class MainWindow : public sf::RenderWindow{ private: std::vector<sf::Color> m_skin; - int m_windowMargin; - int m_sizeCell; - int m_spaceBetweenCell; + //int m_windowMargin; + //int m_sizeCell; + + sf::Font m_font; + //Coordonates sf::Vector2u m_windowSize; + sf::Vector2u m_gridSize; + sf::Vector2u m_cellSize; + + sf::Vector2u m_gridPosition; + int m_spaceBetweenCell; public: MainWindow(int width, int height, std::string title); ~MainWindow(); void clearBG(); - void drawGrid(std::vector<std::vector<int> > grid); + void drawGrid(std::vector<std::vector<int> > grid, bool gameIsOver); void drawCell(int x, int y, int value); sf::Color getCellColor(int value); + void drawGameOver(int gridX, int griY); + void drawATH(); }; |
