-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcentralwidget.h
41 lines (34 loc) · 934 Bytes
/
centralwidget.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
#ifndef CENTRALWIDGET_H
#define CENTRALWIDGET_H
#include <QtGui>
#include "player.h"
class CentralWidget: public QWidget {
Q_OBJECT
private:
QLabel* chanceCover;
QLabel* communityCover;
QLabel* boardLabel;
QLabel* dice1;
QLabel* dice2;
QLabel** playerIcons;
int numPlayers;
QLabel** communityCards;
QLabel** chanceCards;
//Coordinates boardSpace[40];
//QPixmap* cardFaceDown;
//QPixmap* cardFaceUp;
//bool isFaceDown;
private slots:
void drawCard();
public:
CentralWidget(int tempNum, Player* tempPlayers);
void changeDiceImg(int rollNum1, int rollNum2);
void movePieces(int playerNum, Coordinates tempCoordinates);
void hidePiece(int playerNum);
void showCommunity(int cardNum);
void resetCommunity(int cardNum);
void showChance(int cardNum);
void resetChance(int cardNum);
void initializingCards(int tempArray[]);
};
#endif