2015-05-03 14:19:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <SFML/Window.hpp>
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
class MainWindow : public sf::RenderWindow{
|
|
|
|
|
|
|
|
private:
|
2015-05-03 15:12:46 +02:00
|
|
|
std::vector<sf::Color> m_skin;
|
|
|
|
int m_windowMargin;
|
|
|
|
int m_sizeCell;
|
|
|
|
int m_spaceBetweenCell;
|
2015-05-03 17:34:47 +02:00
|
|
|
sf::Vector2u m_windowSize;
|
2015-05-03 14:19:30 +02:00
|
|
|
public:
|
|
|
|
MainWindow(int width, int height, std::string title);
|
|
|
|
~MainWindow();
|
|
|
|
|
2015-05-03 15:12:46 +02:00
|
|
|
void clearBG();
|
|
|
|
void drawCells();
|
2015-05-03 17:18:10 +02:00
|
|
|
sf::Color getCellColor(int value);
|
2015-05-03 14:19:30 +02:00
|
|
|
|
|
|
|
};
|