-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInterface.h
39 lines (32 loc) · 877 Bytes
/
Interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by Lukas Bos on 19/02/2018.
//
#ifndef CHESS_INTERFACE_H
#define CHESS_INTERFACE_H
#include <SFML/Graphics.hpp>
#include "Board.h"
using namespace sf;
class Board;
class Interface {
private:
Font font;
Font boldFont;
Board *board;
void drawBoard();
void drawChessPiece(ChessPiece *, Vector2f);
void drawRecentMoves();
void drawCoordinates();
Move *getMoveBelongingToSelectedSquare(Square *);
RenderWindow &window;
const Color darkSquareColor = Color(100, 100, 150);
const Color lightSquareColor = Color(255, 255, 255);
const Color menuColor = Color(200, 200, 200);
const Color boardBackgroundColor = Color(0, 0, 0);
const Color coordinateLettersColor = Color(255, 255, 255);
public:
Square *selectedSquare = nullptr;
Interface(Board *, RenderWindow &);
Move *getHumanMove();
void draw();
};
#endif //CHESS_INTERFACE_H