-
Notifications
You must be signed in to change notification settings - Fork 0
/
wall.h
42 lines (39 loc) · 950 Bytes
/
wall.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
#ifndef WALL_H
#define WALL_H
#include <QObject>
#include <QGraphicsPixmapItem>
/** @class wall
* @brief The wall class is a class that is used as a boss mechanic.
*
* The wall class publicly derives from the QObject and QGraphicsPixmapItem classes.
*/
class wall : public QObject, public QGraphicsPixmapItem
{
Q_OBJECT
public:
/**
* @brief wall constructor
* @param pixmap is a QPixmap object that contains the image for the wall object
*/
wall(QPixmap pixmap);
/**
* @brief wall destructor
*/
~wall();
public slots:
/**
* @brief deactivate is a public slot that deactivates the wall object
*/
void deactivate();
/**
* @brief reactivate is a public slot that reactives the wall
*/
void reactivate();
/**
* @brief nullify is a public slot that permanently deactivates the wall
*/
void nullify();
private:
bool active;
};
#endif // WALL_H