-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathModuleInterface.h
More file actions
42 lines (34 loc) · 1.08 KB
/
ModuleInterface.h
File metadata and controls
42 lines (34 loc) · 1.08 KB
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
//=================================
// include guard
#ifndef __MODULEINTERFACE_H__
#define __MODULEINTERFACE_H__
//=================================
// forward declared dependencies
//=================================
// included dependencies
#include "Module.h"
#include "Animation.h"
#include "SDL\include\SDL.h"
//=================================
// the actual class
class ModuleInterface : public Module
{
public:
//Interface parts
SDL_Texture *img_life; // Life icon
SDL_Texture *img_beam; // Beam name
SDL_Texture *img_p1; // Player1 icon
SDL_Texture *img_hi; // Hi- name
SDL_Texture *img_numbers_interface; // Numbers for score
SDL_Texture *img_bar; // Beam bar
SDL_Texture *charge_beam; // Beam rectangle for charging
Animation numbers_points;
unsigned int position_interface;
ModuleInterface(Application *app, bool start_enabled = true);
~ModuleInterface();
bool start();
update_status update();
bool cleanUp();
void print_score(unsigned int pos);
};
#endif // !__MODULEINTERFACE_H__