-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwidget.h
33 lines (27 loc) · 970 Bytes
/
mainwidget.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
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
#include <QWidget>
#include <QVBoxLayout>
#include "mapwidget.h"
#include "playerbarwidget.h"
#include "powergrenadethrowing.h"
#include "leaderboard.h"
#include "messageattopofscreen.h"
#include "countdown.h"
class MainWidget : public QWidget
{
public:
explicit MainWidget(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~MainWidget();
MapWidget * getMapWidget() { return mapWidget; }
PowerGrenadeThrowing * getPowerGrenadeThrowing() { return powerGrenadeThrowing; }
private:
QVBoxLayout * qvboxLayout = new QVBoxLayout(this);
PlayerBarWidget * playerBarWidget = new PlayerBarWidget(this);
MapWidget * mapWidget = new MapWidget(playerBarWidget, this);
MessageAtTopOfScreen * messageAtTopOfScreen = nullptr;
Leaderboard * leaderboard = nullptr;
PowerGrenadeThrowing * powerGrenadeThrowing = nullptr;
Countdown * countdown = nullptr;
};
#endif // MAINWIDGET_H