48 lines
1.8 KiB
C++
48 lines
1.8 KiB
C++
/*#ifndef ChessboardVisualizerGraphic_H
|
|
#define ChessboardVisualizerGraphic_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "../Chessboard/ChessboardVisualizer.hpp"*/
|
|
|
|
/*enum Colors {
|
|
BLACK = 0, RED = 1, GREEN = 2, YELLOW = 3, BLUE = 4, MAGENTA = 5, CYAN = 6, WHITE = 7,
|
|
LIGHT_BLACK = 10, LIGHT_RED = 11, LIGHT_GREEN = 12, LIGHT_YELLOW = 13, LIGHT_BLUE = 14,
|
|
LIGHT_MAGENTA = 15, LIGHT_CYAN = 16, LIGHT_WHITE = 17, DEFAULT = 9
|
|
};*/
|
|
|
|
/*class ChessboardVisualizerGraphic : public ChessboardVisualizer {
|
|
protected:
|
|
inline static const std::string TOP_LEFT_CORNER = "\u2554";
|
|
inline static const std::string TOP_RIGHT_CORNER = "\u2557";
|
|
inline static const std::string HORIZONTAL_LINE = "\u2550";
|
|
inline static const std::string VERTICAL_LINE = "\u2551";
|
|
inline static const std::string BOTTOM_LEFT_CORNER = "\u255A";
|
|
inline static const std::string BOTTOM_RIGHT_CORNER = "\u255D";
|
|
|
|
private:
|
|
std::vector<std::vector<std::string>> board;
|
|
void ClearTerminal();
|
|
void DrawTopOrBottomBorder(bool top);
|
|
void GenerateTopOrBottomBorder(bool top);
|
|
void DrawPlayers(Chessboard* chessboard);
|
|
void GeneratePlayers(Chessboard* chessboard);
|
|
std::string GenerateBoardField(Chessboard* chessboard, char file, int rank, int height);
|
|
void DrawBoardField(Chessboard* chessboard, char file, int rank, int height);
|
|
void DrawFiles();
|
|
void GenerateFiles();
|
|
//void SetConsoleColor(Colors foreground, Colors background);
|
|
void SetColorsForField();
|
|
void temp(Chessboard* chessboard);
|
|
void AddMenusToChessboard();
|
|
|
|
public:
|
|
ChessboardVisualizerGraphic() = default;
|
|
void Draw(Chessboard* chessboard);
|
|
void GenerateChessboard(Chessboard* chessboard);
|
|
void DrawFromVector();
|
|
void AddRowToBoard(const std::vector<std::string>& row);
|
|
};
|
|
|
|
#endif
|
|
*/ |