Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
board_to_text_options.h
Go to the documentation of this file.
1#ifndef BOARD_TO_TEXT_OPTIONS_H
2#define BOARD_TO_TEXT_OPTIONS_H
3
10{
11public:
12 explicit board_to_text_options(
13 const bool shows_coordinats = false,
14 const bool shows_legend = false
15 ) noexcept;
16
17 bool get_show_coordinats() const noexcept { return m_show_coordinats; }
18 bool get_show_legend() const noexcept { return m_show_legend; }
19
20 void set_show_coordinats(const bool show_coordinats) noexcept
21 {
22 m_show_coordinats = show_coordinats;
23 }
24 void set_show_legend(const bool show_legend) noexcept
25 {
26 m_show_legend = show_legend;
27 }
28
29private:
30
31 bool m_show_coordinats;
32 bool m_show_legend;
33};
34
35
38
39#endif // BOARD_TO_TEXT_OPTIONS_H
void test_board_to_text_options()
Test this class and its free functions.
Definition board_to_text_options.cpp:15
Options on how to convert a chessboard to text.
Definition board_to_text_options.h:10
void set_show_legend(const bool show_legend) noexcept
Definition board_to_text_options.h:24
void set_show_coordinats(const bool show_coordinats) noexcept
Definition board_to_text_options.h:20
bool get_show_coordinats() const noexcept
Definition board_to_text_options.h:17
bool get_show_legend() const noexcept
Definition board_to_text_options.h:18