Commit 1ec6801b by grlabu

Upload New File

parent 85ca6044
Showing with 40 additions and 0 deletions
#ifndef GAMESCREEN_H
#define GAMESCREEN_H
#include <QMainWindow>
namespace Ui {
class gamescreen;
}
class gamescreen : public QMainWindow
{
Q_OBJECT
public:
explicit gamescreen(QWidget *parent = nullptr);
~gamescreen();
private slots:
void on_Leftbutton_clicked();
void on_Rightbutton_clicked();
private:
Ui::gamescreen *ui;
// Member variables
int playerHp;
int potionCount;
int correctChoice; // Remove defeated_enemies
// Function declarations
void handleMoveResult(int result);
void handleTrap();
void handlePotion();
signals:
void onGameFinished();
void onTrap();
void onPotionGain();
};
#endif // GAMESCREEN_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment