-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.hpp
80 lines (65 loc) · 1.52 KB
/
display.hpp
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
77
78
79
80
#ifndef DISPLAY
#define DISPLAY
#include <SFML/Graphics.hpp>
#include <chrono>
#include <iostream>
#include "config.inl"
#include "network_declarations.inl"
#include "logic.hpp"
#include "server.hpp"
#include "client.hpp"
class Display
{
private:
int xSize;
int ySize;
int counterGravity;
int sleepCont;
int pixel_factor;
int window_width;
int window_height;
int colorChanging;
bool colorAug;
bool namecheck;
short my_pos = 0;
bool thread_runing;
Thread* networking;
short server_choosen;
bool reload;
bool display_ready;
status_type my_status;
int level;
string player_Name;
sf::RenderWindow window;
sf::Event event;
Logic game;
Server host;
Client player;
public:
Display();
void Run();
void Events();
void DrawTitleScreen();
void Draw_Multiplayer_Name_Screen();
void Draw_Multiplayer_Option_Screen();
void Draw_Multiplayer_Join_Screen();
void Draw_Multiplayer_Create_Screen();
void Draw_Loading();
void Draw_Legend_SP();
void Draw_Legend_MP();
void Draw_Tutorial();
void Draw_Lobby();
void DrawGame(vector<string>);
void DrawPlayers(vector<string>,int,vector<string>,int,vector<string>,int);
void DrawPlayers_Guest();
void DrawNext(vector<string>);
void DrawPoints(int, int, int);
void DrawGameOver(int, int, int);
void Writing();
void DrawBackground();
void DrawPause();
void DrawLevelUp();
void ChangeColor();
~Display();
};
#endif