-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstagemenuitems.h
55 lines (41 loc) · 945 Bytes
/
stagemenuitems.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
47
48
49
50
51
52
53
54
55
#ifndef STAGEMENUITEMS_H
#define STAGEMENUITEMS_H
#include "abstractitem.h"
// File must include
#include <QPointF>
#include <QVector>
// File must include
class QPixmap;
/**
* @brief A class of items used in puzzle stage menu.
*/
class StageMenuItem : public AbstractCircleItem
{
public:
/**
* @brief Constructor of the exit item.
*/
StageMenuItem();
/**
* @brief Constructor of the advance item.
*/
StageMenuItem(bool advanced);
/**
* @brief Constructor of the items to choose stage.
*/
StageMenuItem(int stage, bool locked, bool advanced);
virtual void paint(QPainter *painter, int width, int height, int frame);
virtual double r();
/**
* @brief Get whether the item is locked.
*/
inline bool getLocked()
{return lock;}
private:
// The pixmap's vector of the item
QVector<QPixmap> pixmaps;
// The count of the pixmaps
int count;
bool lock;
};
#endif // STAGEMENUITEMS_H