diff options
author | Peter Elliott <pelliott@ualberta.ca> | 2020-08-21 08:53:04 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-23 01:05:22 +0200 |
commit | b0ffd4e94604c72b57568501ed5bff1a0054f4e2 (patch) | |
tree | 14d9c5190ce33525035719bec4c7818776c64a5f /Games/Chess/ChessWidget.h | |
parent | 28db3cd5efe91ad6dd2821ce160f540c2f3ade9a (diff) | |
download | serenity-b0ffd4e94604c72b57568501ed5bff1a0054f4e2.zip |
Chess: Optionaly display coordinates at edge of board
Diffstat (limited to 'Games/Chess/ChessWidget.h')
-rw-r--r-- | Games/Chess/ChessWidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Games/Chess/ChessWidget.h b/Games/Chess/ChessWidget.h index da881277b6..ed3065a9d4 100644 --- a/Games/Chess/ChessWidget.h +++ b/Games/Chess/ChessWidget.h @@ -78,6 +78,9 @@ public: void maybe_input_engine_move(); + void set_coordinates(bool coordinates) { m_coordinates = coordinates; } + bool coordinates() const { return m_coordinates; } + private: Chess::Board m_board; BoardTheme m_board_theme { "Beige", Color::from_rgb(0xb58863), Color::from_rgb(0xf0d9b5) }; @@ -90,4 +93,5 @@ private: bool m_dragging_piece { false }; bool m_drag_enabled { true }; RefPtr<Engine> m_engine; + bool m_coordinates { true }; }; |