Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Functions
draw_board.cpp File Reference
#include "draw_board.h"
#include "board_layout.h"
#include "draw.h"
#include "game.h"
#include "helper.h"
#include "game_controller.h"
#include "game_resources.h"
#include "screen_coordinate.h"
#include "sfml_helper.h"
#include "render_window.h"
#include <cassert>
Include dependency graph for draw_board.cpp:

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)
 Draw the squares of a chessboard at the window target rectangle's location.
 
void draw_unit_health_bars (const game &g, const board_layout &bl)
 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 
)

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 bl 
)

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.