diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-03 20:23:43 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-03 20:23:43 +0200 |
| commit | 6b37ae07ffe0d233b7ff54558d7d39e3e9035e0d (patch) | |
| tree | 1d9cdec6c0c6b6477a8fd965456a176be376671a /src/View/MainWindow.hpp | |
| parent | 1bf3038477b05cf9ead455116ef8125c123a4aae (diff) | |
Add font and fast programming to test the game
Diffstat (limited to 'src/View/MainWindow.hpp')
| -rw-r--r-- | src/View/MainWindow.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/View/MainWindow.hpp b/src/View/MainWindow.hpp index 89cce0f..aabdb09 100644 --- a/src/View/MainWindow.hpp +++ b/src/View/MainWindow.hpp @@ -3,6 +3,8 @@ #include <iostream> #include <vector> +#include <string> +#include <sstream> #include <SFML/Window.hpp> #include <SFML/Graphics.hpp> @@ -15,12 +17,15 @@ class MainWindow : public sf::RenderWindow{ int m_sizeCell; int m_spaceBetweenCell; sf::Vector2u m_windowSize; + public: MainWindow(int width, int height, std::string title); ~MainWindow(); void clearBG(); - void drawCells(); + void drawGrid(std::vector<std::vector<int> > grid); + void drawCell(int x, int y, int value); sf::Color getCellColor(int value); + }; |
