![]() |
Conquer Chess
Chess and Starcraft combined
|
The layout of a square. More...
#include <square_layout.h>
Public Member Functions | |
| square_layout (const screen_rect &square_rect=screen_rect(screen_coordinate(0, 0), screen_coordinate(20, 20))) | |
| const screen_rect & | get_square () const noexcept |
| The full square. | |
| const screen_rect & | get_health_bar_outline () const noexcept |
| The outline of the health bar. | |
| screen_rect | get_health_bar_value (const double f, const race r=race::classic) const |
| The health bar value, a bar within the outline of the health bar. | |
| screen_rect | get_shield_bar_value (const double f) const |
| The shield bar value, a bar within the lower half of the outline of the health bar. | |
| const screen_rect & | get_piece () const noexcept |
| const screen_rect & | get_is_protected () const noexcept |
The layout of a square.
This layout is only relevant if there is a piece in this square
Or for a rooxx piece:
| square_layout::square_layout | ( | const screen_rect & | square_rect = screen_rect(screen_coordinate(0, 0), screen_coordinate(20, 20)) | ) |
|
inlinenoexcept |
The outline of the health bar.
| screen_rect square_layout::get_health_bar_value | ( | const double | f, |
| const race | r = race::classic |
||
| ) | const |
The health bar value, a bar within the outline of the health bar.
|
inlinenoexcept |
|
inlinenoexcept |
| screen_rect square_layout::get_shield_bar_value | ( | const double | f | ) | const |
The shield bar value, a bar within the lower half of the outline of the health bar.
|
inlinenoexcept |
The full square.