Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
game_statistics_widget_layout Class Reference

The layout of the widget that displays the in-game statistics. More...

#include <game_statistics_widget_layout.h>

Public Member Functions

 game_statistics_widget_layout (const screen_rect &square_rect=screen_rect(screen_coordinate(0, 0), screen_coordinate(8, 4)))
 
const screen_rectget_background () const noexcept
 
const screen_rectget_symbol (const game_statistic_type s) const
 Get the symbol for a statistic.
 
const screen_rectget_relative (const game_statistic_type s) const
 Get the rectangle where the relative statistics are shown.
 
const screen_rectget_absolute (const game_statistic_type s, const side player_side) const noexcept
 Get the rectangle where, per player, the absolute value of a statistic is shown.
 

Detailed Description

The layout of the widget that displays the in-game statistics.

Use game_statistics_view_layout} for the game statistics screen.

x .x. .x. .x. x
1 .2. .3. .4. .5
+-----------------------++-----------------------++-----------------------++------------------------+ y1
| ||+--------------+------+||+--------+------------+||+----------------------+| .
| |||relative piece|value ||||relative|activity ||||relative protectedness||
| ||+--------------+------+||+--------+------------+||+----------------------+| .
| ++-----------------------++-----------------------++------------------------+ y2
| ||+---------------+ ||+--------------+ ||+------------------+ | .
| game time |||piece value lhs| |||activity lhs | |||protectedness lhs | |
| ||+---------------+ ||+--------------+ ||+------------------+ | .
| ++-----------------------++-----------------------++------------------------+ y3
| ||+-----------------+ ||+------------+ ||+--------------------+ | .
| |||piece value rhs | ||activity rhs | ||protectedness rhs | |
| ||+-----------------+ ||+------------+ ||+--------------------+ | .
+-----------------------++-----------------------++-----------------------++------------------------+ y4
- 1: time symbol
- 2: piece value symbol
- 3: activity symbol
- 4: protectedness symbol
- .: a one-pixel difference

Constructor & Destructor Documentation

◆ game_statistics_widget_layout()

game_statistics_widget_layout::game_statistics_widget_layout ( const screen_rect square_rect = screen_rect(screen_coordinate(0, 0), screen_coordinate(8, 4)))

Member Function Documentation

◆ get_absolute()

const screen_rect & game_statistics_widget_layout::get_absolute ( const game_statistic_type  s,
const side  player_side 
) const
inlinenoexcept

Get the rectangle where, per player, the absolute value of a statistic is shown.

The rectangle for time is absent here.

◆ get_background()

const screen_rect & game_statistics_widget_layout::get_background ( ) const
inlinenoexcept

◆ get_relative()

const screen_rect & game_statistics_widget_layout::get_relative ( const game_statistic_type  s) const
inline

Get the rectangle where the relative statistics are shown.

The rectangle for time is in here as well.

◆ get_symbol()

const screen_rect & game_statistics_widget_layout::get_symbol ( const game_statistic_type  s) const
inline

Get the symbol for a statistic.


The documentation for this class was generated from the following files: