-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmainwindow.h
53 lines (47 loc) · 1.36 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include "centralwidget.h"
#include "bottomBar.h"
#include "guiplayers.h"
#include "Game_Board.h"
#include <QPlainTextEdit>
#include "player.h"
#include "space.h"
class MainWindow : public QMainWindow {
Q_OBJECT
private:
GUIPlayers* guiPlayers[4];
CentralWidget* centralWidget;
BottomBar* bottomBar;
int playerTurn;
int totalPlayers;
Player* players;
Coordinates boardSpace[40];
Space** spaces;
public:
MainWindow(int numPlayers);
MainWindow();
void nextTurn();
int getPlayerTurn();
void setGamePiece(int playerNum, string pieceName);
void windowSetUp();
string getGamePiece(int playerNum);
void setPlayerLocation(int playerNum, int spaceNum);
int getPlayerLocation(int playerNum);
Coordinates getPlayerPixels(int playerNum);
int getSpaceOwnership(int spaceIndex);
string spaceType(int inputIndex);
Player* getPlayer(int num);
string getPlayerName(int playerNum);
int getSpaceRent(int spaceIndex);
int getPlayerMoney(int playerNum);
int getSpacePropertyCost(int spaceIndex);
void setSpaceOwnership(int spaceIndex, int playerNum);
void playerLost(int playerNum);
bool isPlayerAlive(int playerNum);
int getSpaceTax(int spaceIndex);
string getSpaceName(int spaceIndex, int index);
Space** getAllSpaces();
};
#endif