-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.h
93 lines (54 loc) · 1.25 KB
/
ui.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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef INC_UI_H
#define INC_UI_H
#include "gui.h"
#include "editor.h"
#include "average.h"
#include "uiControl.h"
class simulator;
class ui {
public:
void QuitProgram();
bool *keys;//private
gui g;
//camera
point camP;//camera's position
point camA;//camera's angle
float cDist;//camera's distance
double tC;
void Init(simulator *s, HDC &hDC);
void ChangeScreen(int x, int y);
void MouseLeftDown();
void MouseLeftUp();
void MouseRightDown();
void MouseRightUp();
void MouseMove(int nx, int ny);
void MouseWheel(int d);
void MoveCamera(point p);
void RotateCamera(point p);
void Zoom(int d);
bool Progress(double time);
bool mb[2];//mouse buttons
point mp;//mouse point
point3 pointer;
//track
bool trackCar;
int trackNr;
bool trackAutoRotation;
bool shaders;
void ChangeMode(bool newMode);
void ChangeEditorMode(int newMode);
void SaveCity();
private:
bool mode;//editor, simulator
bool quitProgram;
editor e;
simulator *s;
bool par[10];//parameters
bool btn[10];//buttons
void InitGUI();
//statistics
average avSpeed, avMaxSpeed;
void UpdateStatistics(double time);
bool escapePressed;
};
#endif