1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 15:47:35 +00:00

Minesweeper: Allow single-click chording

This is how other Minesweeper games I've played usually behave.
Single-click chording can be disabled from the menu or config file.
This commit is contained in:
Jookia 2019-07-01 15:54:57 +10:00 committed by Andreas Kling
parent d2b6f79835
commit 9dbf453015
3 changed files with 26 additions and 2 deletions

View file

@ -43,8 +43,10 @@ public:
int columns() const { return m_columns; }
int mine_count() const { return m_mine_count; }
int square_size() const { return 15; }
bool is_single_chording() const { return m_single_chording; }
void set_field_size(int rows, int columns, int mine_count);
void set_single_chording(bool new_val);
void reset();
@ -100,4 +102,5 @@ private:
Face m_face { Face::Default };
bool m_chord_preview { false };
bool m_first_click { true };
bool m_single_chording { true };
};