program down before i init something, because
#include "board.h"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
board::board(sf::RenderWindow *window)
{
mWindow = window;
// mBoardBox = new sf::RectangleShape;
mBoardBox.setSize(sf::Vector2f(((numOfCellsW+1) * margin) + (cellWidth * numOfCellsW),
((numOfCellsH+1) * margin) + (cellHeight * numOfCellsH)));
mBoardBox.setPosition(19, 160);
mBoardBox.setFillColor(sf::Color(187, 173, 160, 255));
// mCellsBg = new sf::RectangleShape;
// mCellsBg.setSize(sf::Vector2f(cellWidth, cellHeight));
// mCellsBg.setFillColor(sf::Color(205, 192, 180, 255));
}
board::~board()
{
}
void board::drawCellsBackground()
{
}
void board::drawBoard()
{
mWindow->draw(mBoardBox);
// mWindow->draw(mCellsBg);
}