Fixed spelling error, added exclipt tile file names number specification

This commit is contained in:
Dmitriy Shishkov 2022-05-31 07:46:20 +03:00
parent 926718365f
commit 12583220a3
No known key found for this signature in database
GPG Key ID: 26720CB2A9608C97
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#include "Drawer.h"
static const char* tileImageNames[] = {
static const char* tileImageNames[TILE_IMAGES_N] = {
// clang-format off
"Pin1", "Pin2", "Pin3", "Pin4", "Pin5", "Pin6", "Pin7", "Pin8", "Pin9",
"Sou1", "Sou2", "Sou3", "Sou4", "Sou5", "Sou6", "Sou7", "Sou8", "Sou9",

View File

@ -20,13 +20,13 @@ GamePanel::GamePanel(wxFrame* parent)
SetBackgroundStyle(wxBG_STYLE_PAINT);
}
void GamePanel::Start(const wxString& path, bool solveable,
void GamePanel::Start(const wxString& path, bool solvable,
std::function<void(const wxSize& size)> setMinSize) {
wxLogDebug(_("Started game"));
controller.stopwatch = 0;
controller.loadLayout(path);
controller.fill(solveable);
controller.fill(solvable);
setMinSize(drawer.composeMinSize(controller.gridSize));
@ -51,9 +51,9 @@ void GamePanel::undo() {
Refresh();
}
void GamePanel::reshuffle(bool solveable) {
void GamePanel::reshuffle(bool solvable) {
controller.free_table();
controller.fill(solveable);
controller.fill(solvable);
drawer.composeBoard(controller.getTable(), controller.gridSize);