-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
41 lines (33 loc) · 956 Bytes
/
Copy pathmain.cpp
File metadata and controls
41 lines (33 loc) · 956 Bytes
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
#include "start_menu.h"
#include "beginning.h"
#include "gui.h"
#include "graphic.h"
#include "gui_objects_factory.h"
#include "database_loader.h"
#include "game_fight.h"
#include "game_drawer.h"
#include "ai.h"
#include "state_manager.h"
Database_loader database;
int main()
{
database.load("../data/data");
database.initialise();
Settings settings("../data/settings.txt");
Gui_objects_rect_factory factory;
Start_menu menu(settings, &factory);
Position position;
Beginning beginning(&factory, &position);
Start_menu loading(settings, &factory);
State_manager state_manager(&beginning, &menu);
Window graphic(settings.get_screen().x, settings.get_screen().y);
GUI gui(&state_manager, &graphic, &settings);
gui.work();
AI ai;
ai.generate_position(&position);
position.start();
Game_fight game_fight(&position);
Game_drawer game_drawer(&game_fight, &factory, &graphic, &settings);
game_drawer.work();
return 0;
}