-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathguiplayers.h
49 lines (41 loc) · 1003 Bytes
/
guiplayers.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
#ifndef GUIPLAYERS_H
#define GUIPLAYERS_H
#include "player.h"
#include <QtGui>
#include <QDockWidget>
#include <string>
#include <sstream>
#include <QVBoxLayout>
#include "space.h"
#include "money_action.h"
#include "bank.h"
#include <QSignalMapper>
class GUIPlayers : public QDockWidget {
Q_OBJECT
protected:
Player* player;
QLabel *numLabel;
QLabel *moneyLabel;
QVBoxLayout* layout;
QWidget* sideBar;
QLabel* gamePieceImg;
QPushButton** ownedProperties;
int currentPropertyNum;
int allProperties[40];
int ownedCount;
Space** allSpaces;
MoneyAction moneyAction;
Bank* bankPointer;
private slots:
void upgradeSpace();
public:
GUIPlayers(Player* p, int playerNum);
GUIPlayers();
void setMoneyText();
void addProperty(int propertyNum, string propertyName, Space** spaceArray);
void enableUpgrade();
void disableUpgrade();
void setAllSpaces(Space** spaceArray);
void setBank(Bank* tempBank);
};
#endif