Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
draw_board.h File Reference
#include "ccfwd.h"
#include "piece.h"
#include <vector>
Include dependency graph for draw_board.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void draw_pieces (const game_controller &c, const board_layout &layout, const bool indicate_protectedness)
 Draw the pieces.
 
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.
 
void draw_unit_health_bars (const game &g, const board_layout &layout)
 Show the pieces' health bars on-screen.
 
void draw_unit_paths (const std::vector< piece > &pieces, const board_layout &layout)
 Show the paths the units are taking on-screen.
 

Function Documentation

◆ draw_pieces()

void draw_pieces ( const game_controller c,
const board_layout layout,
const bool  indicate_protectedness 
)

Draw the pieces.

◆ draw_squares()

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.

◆ draw_unit_health_bars()

void draw_unit_health_bars ( const game g,
const board_layout layout 
)

Show the pieces' health bars on-screen.

◆ draw_unit_paths()

void draw_unit_paths ( const std::vector< piece > &  pieces,
const board_layout layout 
)

Show the paths the units are taking on-screen.