1#ifndef GAME_VIEW_LAYOUT_H
2#define GAME_VIEW_LAYOUT_H
71 const auto&
get_board() const noexcept {
return m_board; }
77 const auto&
get_game_info() const noexcept {
return m_game_statistics; }
91 std::map<side, in_game_controls_layout> m_controls;
92 std::map<side, screen_rect> m_debug;
95 std::map<side, screen_rect> m_log;
96 std::map<side, screen_rect> m_unit_info;
The layout of a chess board.
Definition board_layout.h:15
An exact coordinate anywhere on the board.
Definition game_coordinate.h:32
Options for the game.
Definition game_options.h:18
A rectangle of game coordinates.
Definition game_rect.h:12
The layout of the Game dialog.
Definition game_view_layout.h:61
const auto & get_game_info() const noexcept
Definition game_view_layout.h:77
const screen_rect & get_unit_info(const side player) const noexcept
Information about a unit.
Definition game_view_layout.cpp:234
const screen_rect & get_log(const side player) const noexcept
The area where the frame rate (in frames per seconds) is dsplayed.
Definition game_view_layout.cpp:213
const screen_rect & get_debug(const side player) const noexcept
Definition game_view_layout.cpp:208
const auto & get_board() const noexcept
Definition game_view_layout.h:71
const auto & get_background() const noexcept
The entire screen.
Definition game_view_layout.h:69
const in_game_controls_layout & get_controls(const side player) const noexcept
Definition game_view_layout.cpp:203
const navigation_controls_layout & get_navigation_controls(const side player) const noexcept
Definition game_view_layout.cpp:218
The layout for the controls in the game.
Definition in_game_controls_layout.h:34
The navigation controls for a player.
Definition navigation_controls_layout.h:25
The coordinate on a screen.
Definition screen_coordinate.h:12
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
A chess square.
Definition square.h:58
double get_square_height(const game_view_layout &layout) noexcept
Get the height of a square.
Definition game_view_layout.cpp:224
int get_board_width(const game_view_layout &layout) noexcept
Get the width of the board in pixels.
Definition game_view_layout.cpp:197
void test_game_view_layout()
Test the game_view_layout class.
Definition game_view_layout.cpp:239
game_coordinate convert_to_game_coordinate(const screen_coordinate &coordinat, const game_view_layout &layout)
Convert an on-screen coordinat to an in-game coordinat.
Definition game_view_layout.cpp:127
screen_coordinate convert_to_screen_coordinate(const game_coordinate &coordinat, const game_view_layout &layout)
Convert an in-game coordinat to an on-screen coordinat.
Definition game_view_layout.cpp:152
int get_board_height(const game_view_layout &layout) noexcept
Get the height of the board in pixels.
Definition game_view_layout.cpp:192
std::ostream & operator<<(std::ostream &os, const game_view_layout &layout) noexcept
Definition game_view_layout.cpp:380
double get_square_width(const game_view_layout &layout) noexcept
Get the width of a square.
Definition game_view_layout.cpp:229
screen_rect convert_to_screen_rect(const game_rect &coordinat, const game_view_layout &layout)
Convert an in-game coordinat to an on-screen coordinat.
Definition game_view_layout.cpp:171
constexpr int get_default_margin_width() noexcept
Get the default margin width/size, in pixels.
Definition layout.h:7
screen_rect get_default_screen_rect() noexcept
Get the default screen rectangle.
Definition screen_rect.cpp:140
side
The side the player/piece is on.
Definition side.h:11