mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
Chess: Added option to toggle showing moves
This commit is contained in:
parent
42f7f9d0f8
commit
17b7779271
2 changed files with 13 additions and 0 deletions
|
@ -66,6 +66,9 @@ public:
|
|||
void set_drag_enabled(bool e) { m_drag_enabled = e; }
|
||||
RefPtr<Gfx::Bitmap> get_piece_graphic(const Chess::Piece& piece) const;
|
||||
|
||||
bool show_available_moves() const { return m_show_available_moves; }
|
||||
void set_show_available_moves(bool e) { m_show_available_moves = e; }
|
||||
|
||||
String get_fen() const;
|
||||
bool import_pgn(const StringView& import_path);
|
||||
bool export_pgn(const StringView& export_path) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue