-
Notifications
You must be signed in to change notification settings - Fork 1
/
sceneslib.h
197 lines (183 loc) · 3.36 KB
/
sceneslib.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
#ifndef SCENESLIB_H
#define SCENESLIB_H
#include "defines.h"
#include "graphicslib.h"
/**
* @brief
*
*/
class scenesLib
{
public:
/**
* @brief
*
*/
scenesLib();
/**
* @brief
*
*/
void preloadScenes() const;
/**
* @brief
*
*/
void intro();
/**
* @brief
*
*/
void draw_main();
/**
* @brief
*
*/
void main_screen();
/**
* @brief
*
* @return short
*/
short pick_stage();
/**
* @brief
*
*/
void unload_intro();
/**
* @brief
*
*/
void show_password(); // show the password fot the current save
/**
* @brief
*
* @param pos_n
*/
void boss_intro(int pos_n) const;
/**
* @brief
*
*/
void show_destrin_ship_intro() const;
/**
* @brief
*
* @param stage_finished
* @return short
*/
short show_main_config(short stage_finished);
private:
// preload/umload
/**
* @brief
*
*/
void preload_intro();
/**
* @brief
*
*/
void preload_stage_select() const;
/**
* @brief
*
*/
void preload_faces();/// @TODO: move to graphLib and create a function show_face(st_position)
/**
* @brief
*
*/
void unload_faces();/// @TODO: move to graphLib and create a function show_face(st_position)
/**
* @brief
*
*/
void unload_stage_select();
/**
* @brief
*
*/
void intro_presents();
/**
* @brief
*
*/
void show_config_video();
/**
* @brief
*
*/
void show_config_video_PSP();
/**
* @brief
*
*/
void show_config_audio();
/**
* @brief
*
* @return bool
*/
bool password_ball_selector();
/**
* @brief
*
* @return bool
*/
bool password_set();
/**
* @brief
*
* @return bool
*/
bool password_end_selector();
/**
* @brief
*
* @param ball_type
*/
void password_number_selector(int ball_type);
/**
* @brief
*
* @return bool
*/
bool show_password_input();
/**
* @brief
*
* @return Uint8
*/
Uint8 select_player();
/**
* @brief
*
* @param lights
* @param mode
* @param adjustX
* @param adjustY
*/
void draw_lights_select_player(graphicsLib_gSurface& lights, int mode, int adjustX, int adjustY);
/**
* @brief
*
* @param vertical_first
* @param initial_point
* @param final_point
* @param total_duration
*/
void draw_castle_path(bool vertical_first, st_position initial_point, st_position final_point, short total_duration) const;
private:
graphicsLib_gSurface INTRO_SURFACES[INTRO_SURFACES_COUNT]; /**< TODO */
graphicsLib_gSurface STAGE_SELECT_SURFACES[STAGE_SELECT_COUNT]; /**< TODO */
st_position selected_stage; /**< TODO */
graphicsLib_gSurface _password_selector; /**< TODO */
unsigned int _timer; // animation timer /**< TODO */
short _state; // animation state /**< TODO */
graphicsLib_gSurface* _blink_surface; // animation surface (light/dark) /**< TODO */
std::vector<std::string> options; /**< TODO */
int _password_selected_balls[PASSWORD_GRID_SIZE][PASSWORD_GRID_SIZE]; /**< TODO */
};
#endif // SCENESLIB_H