-
Notifications
You must be signed in to change notification settings - Fork 1
/
Application.h
71 lines (60 loc) · 1.6 KB
/
Application.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
#ifndef __APPLICATION_H__
#define __APPLICATION_H__
#include "Globals.h"
#define NUM_MODULES 20
class Module;
class ModuleWindow;
class ModuleInput;
class ModuleTextures;
class ModuleFonts;
class ModuleRender;
class ModulePlayer;
class ModuleEnemies;
class ModuleAudio;
class ModuleParticles;
class ModuleFadeToBlack;
class ModuleSceneMainMenu;
class ModuleSceneChoosePlayer;
class ModuleSceneStage1;
class ModuleSceneStage2;
class ModuleSceneStage4;
class ModuleSceneScore;
class ModuleSceneCongrats;
class ModuleCollision;
class ModuleTentacles;
class ModulePowerUp;
class ModuleSceneTest;
class Application
{
public:
Module * modules[NUM_MODULES] = { nullptr };
ModuleWindow* window = nullptr;
ModuleRender* render = nullptr;
ModuleInput* input = nullptr;
ModuleTextures* textures = nullptr;
ModulePlayer* player = nullptr;
ModuleFonts* font = nullptr;
ModuleEnemies* enemies = nullptr;
ModuleAudio* audio = nullptr;
ModuleParticles* particles = nullptr;
ModuleFadeToBlack* fade = nullptr;
ModuleSceneMainMenu* scene_MainMenu;
ModuleSceneChoosePlayer* scene_choosePlayer = nullptr;
ModuleSceneStage1* scene_stage1 = nullptr;
ModuleSceneStage4* scene_stage4 = nullptr;
ModuleSceneCongrats* scene_congrats = nullptr;
ModuleCollision* collision = nullptr;
ModuleTentacles* tentacles = nullptr;
ModulePowerUp* powerup = nullptr;
ModuleSceneTest* scene_test = nullptr;
ModuleSceneScore* scene_score = nullptr;
public:
Application();
~Application();
bool Init();
update_status Update();
bool CleanUp();
};
// Global var made extern for Application ---
extern Application* App;
#endif // __APPLICATION_H__