-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
42 lines (36 loc) · 1.47 KB
/
main.cpp
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
#include <QApplication>
#include <QQuickView>
#include <QQmlApplicationEngine>
#include "types/player/duck.h"
#include "types/player/ball.h"
#include "types/obstacles/barrel/barrels.h"
#include "types/obstacles/barrel/barrel.h"
#include "types/obstacles/cloud/clouds.h"
#include "types/outline.h"
#include "types/obstacles/cloud/cloud.h"
#include "types/game.h"
#include "types/background/trees.h"
#include "types/background/tree.h"
#include "types/fileIO/filestream.h"
#include "dialogs/gameOverDialog/scoredialog.h"
#include "types/obstacles/cloud/dischargearea/dischargearea.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlRegisterType<DischargeArea>("DischargeArea", 1, 0, "DischargeArea");
qmlRegisterType<ScoreDialog>("ScoreDialog", 1, 0, "ScoreDialog");
qmlRegisterType<FileStream>("FileStream", 1, 0, "FileStream");
qmlRegisterType<Tree>("Tree", 1, 0, "Tree");
qmlRegisterType<Trees>("Trees", 1, 0, "Trees");
qmlRegisterType<Barrel>("Barrel", 1, 0, "Barrel");
qmlRegisterType<Game>("Game", 1, 0, "Game");
qmlRegisterType<Cloud>("Cloud", 1, 0, "Cloud");
qmlRegisterType<Duck>("Duck", 1, 0, "Duck");
qmlRegisterType<Ball>("Ball", 1, 0, "Ball");
qmlRegisterType<Barrels>("Barrels", 1, 0, "Barrels");
qmlRegisterType<Clouds>("Clouds", 1, 0, "Clouds");
qmlRegisterType<Outline>("Outline",1,0,"Outline");
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
return app.exec();
}