-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModuleScenePreStage.h
70 lines (53 loc) · 1.36 KB
/
ModuleScenePreStage.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
#ifndef MODULESCENEPRESTAGE_H
#define MODULESCENEPRESTAGE_H
#include "Module.h"
#include "Animation.h"
#include "Point.h"
#include <vector>
#define MODULESCENE_PRESTAGE "ModuleScene_PreStage"
#define SCENE_SECTION_PRESTAGE "Config.Scenes.PreStage"
#define SCENE_SECTION_HISTORY1 "Config.Scenes.PreStage.History1"
#define SCENE_SECTION_HISTORY2 "Config.Scenes.PreStage.History23"
#define SCENE_SECTION_PRESTAGE3 "Config.Scenes.PreStage.Stage3"
struct SDL_Texture;
struct TextLine;
class JSONParser;
class Timer;
class ModuleScenePreStage : public Module
{
private:
enum PreStageScreen
{
HISTORY1,
HISTORY2,
HISTORY3,
STAGE3,
UNKNOWN
};
public:
ModuleScenePreStage(JSONParser* parser, bool active = true);
~ModuleScenePreStage();
bool Start();
update_status Update();
bool CleanUp();
private:
SDL_Texture* texture = nullptr;
Animation animated_point;
Animation face1;
Animation face2;
SDL_Rect rect_map = { 0,0,0,0 };
SDL_Rect rect_mission = { 0,0,0,0 };
SDL_Rect rect_country = { 0,0,0,0 };
iPoint ipos_map = { 0,0 };
iPoint ipos_mission = { 0,0 };
iPoint ipos_country = { 0,0 };
iPoint ipos_point = { 0,0 };
iPoint ipos_face1 = { 0,0 };
iPoint ipos_face2 = { 0,0 };
PreStageScreen current_state = UNKNOWN;
std::vector<TextLine*> lines;
int ilines_print;
Timer* timer = nullptr;
float ffade_time = 1.0f;
};
#endif // !MODULESCENEPRESTAGE_H