-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqtk3opeenrijselectplayerwidget.h
78 lines (62 loc) · 1.93 KB
/
qtk3opeenrijselectplayerwidget.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef QTK3OPEENRIJSELECTPLAYERWIDGET_H
#define QTK3OPEENRIJSELECTPLAYERWIDGET_H
#include <bitset>
#include "k3opeenrijnames.h"
#include <QImage>
#include <QWidget>
namespace ribi {
namespace koer {
struct QtK3OpEenRijResources;
class QtK3OpEenRijSelectPlayerWidget : public QWidget
{
Q_OBJECT
public:
explicit QtK3OpEenRijSelectPlayerWidget(
const QtK3OpEenRijResources& resources,
QWidget *parent = 0
);
const std::bitset<3>& GetIsPlayerHuman() const { return m_is_player_human; }
BlackHairedGirl GetBlack() const noexcept { return m_black; }
BlondeGirl GetBlond() const noexcept { return m_blond; }
RedHairedGirl GetRed() const noexcept { return m_red; }
protected:
void mousePressEvent(QMouseEvent * e);
void paintEvent(QPaintEvent *);
private:
BlackHairedGirl m_black;
BlondeGirl m_blond;
RedHairedGirl m_red;
std::bitset<3> m_is_player_human;
const QImage m_david;
const QImage m_david_grey;
const QImage m_hanne;
const QImage m_hanne_grey;
const QImage m_josje;
const QImage m_josje_grey;
const QImage m_karen;
const QImage m_karen_grey;
const QImage m_kathleen;
const QImage m_kathleen_grey;
const QImage m_klaasje;
const QImage m_klaasje_grey;
const QImage m_kristel;
const QImage m_kristel_grey;
const QImage m_marthe;
const QImage m_marthe_grey;
const QImage m_matt;
const QImage m_matt_grey;
const QImage m_tyler;
const QImage m_tyler_grey;
const QImage m_computer1;
const QImage m_computer2;
const QImage m_computer3;
const QImage m_computer_grey;
static const int m_sprite_height;
static const int m_sprite_width;
const QImage& GetImage(const bool is_human,const BlackHairedGirl girl) const noexcept;
const QImage& GetImage(const bool is_human,const BlondeGirl girl) const noexcept;
const QImage& GetImage(const bool is_human,const RedHairedGirl girl) const noexcept;
};
} //~namespace koer
} //~namespace ribi
#endif // QTK3OPEENRIJSELECTPLAYERWIDGET_H