29 lines
867 B
C++
29 lines
867 B
C++
#ifndef HISTORIEVISUALIZER_HPP
|
|
#define HISTORIEVISUALIZER_HPP
|
|
|
|
#include "BaseVisualizer.hpp"
|
|
#include "../Chessboard/Chessboard.hpp"
|
|
|
|
class HistorieVisualizer : public BaseVisualizer {
|
|
private:
|
|
const std::string PLAYER1;
|
|
const std::string PLAYER2;
|
|
|
|
std::vector<std::vector<std::string>> histories;
|
|
Chessboard* CHESSBOARD;
|
|
|
|
void GenerateElement() override;
|
|
|
|
public:
|
|
HistorieVisualizer(Chessboard* chessbord,const size_t menuWidth, const size_t padding) :
|
|
BaseVisualizer(menuWidth, padding), histories(5, std::vector<std::string>(2, "")),
|
|
CHESSBOARD(chessbord),
|
|
PLAYER1(chessbord->GetPlayer(ChessPieceColor::White)->GetName()),
|
|
PLAYER2(chessbord->GetPlayer(ChessPieceColor::Black)->GetName())
|
|
{
|
|
HistorieVisualizer::GenerateElement();
|
|
};
|
|
};
|
|
|
|
#endif //HISTORIEVISUALIZER_HPP
|