Skip to content

Commit

Permalink
mine counter ushort to short (#57)
Browse files Browse the repository at this point in the history
* ushort mines -> short mines

* ushort mines -> short mines

* ushort mines -> short mines

* ushort mines -> short mines

* ushort mines -> short mines

* ushort mines -> short mines

I accidentally deleted a space, in spirit of being close to the original, I returned it
  • Loading branch information
sailormiolen authored Mar 19, 2024
1 parent 4a5ef0a commit 4a41b0f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/libreminesgameengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ LibreMinesGameEngine::LibreMinesGameEngine()

void LibreMinesGameEngine::vNewGame(const uchar _X,
const uchar _Y,
ushort i_nMines_,
short i_nMines_,
const uchar i_X_Clean,
const uchar i_Y_Clean)
{
Expand Down Expand Up @@ -511,7 +511,7 @@ uchar LibreMinesGameEngine::lines() const
return iY;
}

ushort LibreMinesGameEngine::mines() const
short LibreMinesGameEngine::mines() const
{
return nMines;
}
Expand Down
10 changes: 5 additions & 5 deletions src/libreminesgameengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ class LibreMinesGameEngine: public QObject
LibreMinesGameEngine();
void vNewGame(const uchar _X,
const uchar _Y,
ushort i_nMines_,
short i_nMines_,
const uchar i_X_Clean = 255,
const uchar i_Y_Clean = 255);

const std::vector< std::vector<CellGameEngine> >& getPrincipalMatrix()const;
uchar rows()const;
uchar lines()const;
ushort mines()const;
short mines()const;
ushort cellsToUnlock()const;
ushort hiddenCells()const;
bool isGameActive()const;
Expand Down Expand Up @@ -83,8 +83,8 @@ class LibreMinesGameEngine: public QObject
uchar iX; /**< TODO: describe */
uchar iY; /**< TODO: describe */

ushort nMines; /**< TODO: describe */
ushort iMinesLeft; /**< TODO: describe */
short nMines; /**< TODO: describe */
short iMinesLeft; /**< TODO: describe */
ushort iHiddenCells; /**< TODO: describe */
ushort iCellsToUnlock; /**< TODO: describe */

Expand All @@ -108,7 +108,7 @@ class LibreMinesGameEngine: public QObject
double dCellsPerSecond,
bool ignorePreferences=false);
void SIGNAL_currentTime(const ushort);
void SIGNAL_minesLeft(const ushort);
void SIGNAL_minesLeft(const short);
void SIGNAL_flagCell(const uchar _X, const uchar _Y);
void SIGNAL_questionCell(const uchar _X, const uchar _Y);
void SIGNAL_unflagCell(const uchar _X, const uchar _Y);
Expand Down
6 changes: 3 additions & 3 deletions src/libreminesgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ void LibreMinesGui::closeEvent(QCloseEvent *e)

void LibreMinesGui::vNewGame(const uchar _X,
const uchar _Y,
ushort i_nMines_)
short i_nMines_)
{
bMinefieldBeingCreated = true;

vAdjustInterfaceInGame();
vShowInterfaceInGame();

Expand Down Expand Up @@ -1327,7 +1327,7 @@ void LibreMinesGui::SLOT_currentTime(const ushort time)
// Q_EMIT(sound->SIGNAL_clockTick());
}

void LibreMinesGui::SLOT_minesLeft(const ushort minesLeft)
void LibreMinesGui::SLOT_minesLeft(const short minesLeft)
{
lcd_numberMinesLeft->display(minesLeft);
}
Expand Down
4 changes: 2 additions & 2 deletions src/libreminesgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class LibreMinesGui : public QMainWindow
private:
void vNewGame(const uchar _X,
const uchar _Y,
ushort i_nMines_);
short i_nMines_);

void vAttributeAllCells();
void vResetPrincipalMatrix();
Expand Down Expand Up @@ -185,7 +185,7 @@ private Q_SLOTS:
double dCellsPerSecond,
bool ignorePreferences=false);
void SLOT_currentTime(const ushort time);
void SLOT_minesLeft(const ushort minesLeft);
void SLOT_minesLeft(const short minesLeft);
void SLOT_flagCell(const uchar _X, const uchar _Y);
void SLOT_QuestionCell(const uchar _X, const uchar _Y);
void SLOT_unflagCell(const uchar _X, const uchar _Y);
Expand Down
2 changes: 1 addition & 1 deletion src/libreminesscore.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LibreMinesScore
GameDifficulty gameDifficulty;
uchar width;
uchar heigth;
ushort mines;
short mines;
bool bGameCompleted;
double dPercentageGameCompleted;
QString username;
Expand Down

0 comments on commit 4a41b0f

Please sign in to comment.