SDL SPOOKY PLATFORMER ENGINE  0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
TextUpdaters.hpp
Go to the documentation of this file.
1 #ifndef TEXT_UPDATERS_HPP
2 #define TEXT_UPDATERS_HPP
3 
4 #include "BasicTextComponent.hpp"
5 #include "string"
6 #include "iomanip"
7 #include "sstream"
8 #include "GameManager.hpp"
9 #include "HealthComponent.hpp"
10 
11 class HealthComponent;
12 
13 class FPSUpdate : public TextUpdate {
14  void OnUpdate(float deltaTime);
15  bool toggled;
16  bool togglePressed;
17 };
18 
19 class ScoreUpdate : public TextUpdate {
20  void OnUpdate(float deltaTime);
21 };
22 
23 class PowerUpdate : public TextUpdate {
24  void OnUpdate(float deltaTime);
25 };
26 
27 class HealthUpdate : public TextUpdate {
28  public:
30  void OnUpdate(float deltaTime);
31  private:
32  HealthComponent* health;
33 };
34 
35 #endif
void OnUpdate(float deltaTime)
Definition: TextUpdaters.cpp:64
HealthUpdate(HealthComponent *health)
Definition: TextUpdaters.cpp:62
Definition: TextUpdaters.hpp:27
Definition: TextUpdaters.hpp:19
Definition: BasicTextComponent.hpp:11
Definition: TextUpdaters.hpp:13
Definition: HealthComponent.hpp:11
Definition: TextUpdaters.hpp:23