Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
krkane
/
Rüütli Vaev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1ec6801b
authored
May 01, 2024
by
grlabu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
85ca6044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
Library/gamescreen.h
Library/gamescreen.h
0 → 100644
View file @
1ec6801b
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment