-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui_elem_collection.h
90 lines (73 loc) · 2.63 KB
/
gui_elem_collection.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
#ifndef GUI_ELEM_COLLECTION_H_
#define GUI_ELEM_COLLECTION_H_
#include "gui_elem.h"
#include "crew_status_gui_elem.h"
#include "engine_power_gui_elem.h"
namespace game {
class BackgroundGuiElem : public GuiElem {
public:
BackgroundGuiElem(Geometry* geom, Shader* shader, GLFWwindow* window);
virtual void Update(double delta_time, GuiState* gui_state) override;
virtual void ProcessInput(GuiState* gui_state) override;
};
class CrewGuiElem : public GuiElem {
public:
static int crew_count;
CrewGuiElem(Geometry* geom, Shader* shader, GLFWwindow* window);
virtual void Update(double delta_time, GuiState* gui_state) override;
virtual void ProcessInput(GuiState* gui_state) override;
private:
CrewStatusBgElem* crew_status_bg_elem_;
CrewStatusHealthElem* crew_status_health_elem_;
CrewStatusPositionElem* crew_status_position_elem_;
};
/* Engine Power: */
class EnginePowerGuiElem : public GuiElem {
public:
EnginePowerGuiElem(Geometry* geom, Shader* shader, GLFWwindow* window);
virtual void Update(double delta_time, GuiState* gui_state) override;
virtual void ProcessInput(GuiState* gui_state) override;
private:
EnginePowerGuiBackground* engine_power_gui_background_;
TopGreenElem* top_green_elem_;
TopOrangeElem* top_orange_elem_;
TopRedElem* top_red_elem_;
GreyElem* grey_elem_;
BottomRedElem* bottom_red_elem_;
BottomOrangeElem* bottom_orange_elem_;
BottomGreenElem* bottom_green_elem_;
};
/* Port Engine Power: */
class PortEnginePowerGuiElem : public GuiElem {
public:
PortEnginePowerGuiElem(Geometry* geom, Shader* shader, GLFWwindow* window);
virtual void Update(double delta_time, GuiState* gui_state) override;
virtual void ProcessInput(GuiState* gui_state) override;
private:
EnginePowerGuiBackground* engine_power_gui_background_;
TopGreenElem* top_green_elem_;
TopOrangeElem* top_orange_elem_;
TopRedElem* top_red_elem_;
GreyElem* grey_elem_;
BottomRedElem* bottom_red_elem_;
BottomOrangeElem* bottom_orange_elem_;
BottomGreenElem* bottom_green_elem_;
};
/* Starboard Engine Power: */
class StarboardEnginePowerGuiElem : public GuiElem {
public:
StarboardEnginePowerGuiElem(Geometry* geom, Shader* shader, GLFWwindow* window);
virtual void Update(double delta_time, GuiState* gui_state) override;
virtual void ProcessInput(GuiState* gui_state) override;
private:
EnginePowerGuiBackground* engine_power_gui_background_;
TopGreenElem* top_green_elem_;
TopOrangeElem* top_orange_elem_;
TopRedElem* top_red_elem_;
GreyElem* grey_elem_;
BottomRedElem* bottom_red_elem_;
BottomOrangeElem* bottom_orange_elem_;
BottomGreenElem* bottom_green_elem_;
};
}
#endif