-
Notifications
You must be signed in to change notification settings - Fork 7
/
bottomBar.h
76 lines (64 loc) · 1.58 KB
/
bottomBar.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
#ifndef BOTTOMBAR_H
#define BOTTOMBAR_H
#include <QtGui>
#include <QDockWidget>
#include <QPushButton>
#include <QGridLayout>
#include "guiplayers.h"
#include "centralwidget.h"
#include "money_action.h"
#include "bank.h"
#include "card.h"
#include "card_move.h"
#include "card_money.h"
class MainWindow;
class BottomBar : public QDockWidget {
Q_OBJECT
protected:
QPushButton* rollButton;
QPushButton* upgradeButton;
QPushButton* purchaseButton;
QPushButton* endTurnButton;
QPushButton* player1Button;
QPushButton* player2Button;
QPushButton* player3Button;
QPushButton* player4Button;
QGridLayout* layout;
QWidget* bottomWidget;
int diceRoll1;
int diceRoll2;
Bank* bank;
Player* freePark;
MoneyAction moneyAction;
Card** community;
Card** chance;
int newSpace;
int oldSpace;
int numAlive;
int communityCount;
int chanceCount;
int index[10];
//storing reference pointers
GUIPlayers** allPlayers;
CentralWidget* monopolyBoard;
MainWindow* myWindow;
int numberOfPlayers;
int currentPlayerNum;
private slots:
//need to incorporate to make the buttons work
void rollDice();
void upgrade();
void purchase();
void endTurn();
void seePlayer1();
void seePlayer2();
void seePlayer3();
void seePlayer4();
public:
BottomBar();
void setPlayers(int numberPlayers, GUIPlayers* tempPlayers[]);
void setCentralWidget(CentralWidget* tempBoard);
void setMainWindow(MainWindow* tempWindow);
void disableButtons(int num);
};
#endif