Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
draw_board.h
Go to the documentation of this file.
1#ifndef DRAW_BOARD_H
2#define DRAW_BOARD_H
3
4#ifndef LOGIC_ONLY
5
6#include "ccfwd.h"
7
8#include "piece.h"
9
10#include <vector>
11
13void draw_pieces(
14 const game_controller& c,
15 const board_layout& layout,
16 const bool indicate_protectedness
17);
18
20void draw_squares(
21 const board_layout& layout,
22 const bool semi_transparent = true
23);
24
27 const game& g,
28 const board_layout& layout
29);
30
33 const std::vector<piece>& pieces,
34 const board_layout& layout
35);
36
37#endif // LOGIC_ONLY
38
39#endif // DRAW_BOARD_H
The layout of a chess board.
Definition board_layout.h:15
The class that acts as a controller for game}.
Definition game_controller.h:31
The game logic.
Definition game.h:28
void draw_unit_paths(const std::vector< piece > &pieces, const board_layout &layout)
Show the paths the units are taking on-screen.
Definition draw_board.cpp:167
void draw_pieces(const game_controller &c, const board_layout &layout, const bool indicate_protectedness)
Draw the pieces.
Definition draw_board.cpp:16
void draw_squares(const board_layout &layout, const bool semi_transparent=true)
Draw the squares of a chessboard at the window target rectangle's location.
Definition draw_board.cpp:81
void draw_unit_health_bars(const game &g, const board_layout &layout)
Show the pieces' health bars on-screen.
Definition draw_board.cpp:105