-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnorlax.h
46 lines (40 loc) · 982 Bytes
/
snorlax.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
36
37
38
39
40
41
42
43
44
45
46
/**@file snorlax.h
* @brief declaration for the snorlax class
*
* Contains the declarations of the member funcitons.
*/
#ifndef SNORLAX_H
#define SNORLAX_H
#include <QObject>
#include <QGraphicsPixmapItem>
#include <QGraphicsItem>
#include <QLabel>
#include <QPainter>
#include <QKeyEvent>
#include <QTimer>
#include <QMediaPlayer>
/**@class Snorlax
* This class deals with the Snorlax helping Ash jump.
* @brief The Snorlax class constructs the snorlax in the game.
*/
class Snorlax : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
explicit Snorlax(QGraphicsItem *parent = 0);
};
/**@class Button
* This class deals with the button in hard mode.
* @brief The Button class constructs the button in the hard mode.
*/
class Button : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
explicit Button(QGraphicsItem *parent = 0);
public slots:
void turnedOn();
private:
QMediaPlayer* button_sound;
};
#endif // SNORLAX_H