-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayergui.h
39 lines (32 loc) · 834 Bytes
/
playergui.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
#ifndef PLAYERGUI_H
#define PLAYERGUI_H
#include <player.h>
#include <enemy.h>
class PlayerGUI
{
public:
PlayerGUI(Player* player);
PlayerGUI(Enemy* enemy,Player* player);
virtual ~PlayerGUI();
void update(const float& potionTimer);
void updateEnemy();
void render(sf::RenderWindow* window,int x);
void renderEnemy(sf::RenderWindow* window);
private:
Player* player;
Enemy* enemy;
sf::Font font;
sf::RectangleShape hpBarOut;
sf::RectangleShape hpBarIn;
sf::RectangleShape hpBarOutE;
sf::RectangleShape hpBarInE;
sf::RectangleShape gameOverBar;
sf::Text gameOverText;
sf::RectangleShape GGBar;
sf::Text GGText;
std::string potionTimeString;
sf::Text potionTimeText;
sf::RectangleShape potionTime;
float hpMaxWidth;
};
#endif // PLAYERGUI_H