-
Notifications
You must be signed in to change notification settings - Fork 19
/
shop.h
35 lines (29 loc) · 685 Bytes
/
shop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SHOP_H
#define SHOP_H
#include <QWidget>
#include <QKeyEvent>
#include <QPainter>
class Shop : public QWidget
{
Q_OBJECT
public:
Shop();
~Shop();
protected:
void paintEvent(QPaintEvent *event);
void timerEvent(QTimerEvent *event);
void keyPressEvent(QKeyEvent* event);
void buySelectedItem();
private:
int timerId_;
int costs_[20];
int selectedShopItem_;
bool unlocked_[20];
bool unlocked_bullet25mm_;
bool unlocked_gatlingGuns_;
bool unlocked_laserRifle_;
bool unlocked_laserRed_;
bool unlocked_laserBlue_;
bool unlocked_laserYellow_;
};
#endif // SHOP_H