SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
Main Page
Related Pages
Classes
Files
File List
File Members
include
utils
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
:
29
HealthUpdate
(
HealthComponent
* health);
30
void
OnUpdate
(
float
deltaTime);
31
private
:
32
HealthComponent
* health;
33
};
34
35
#endif
HealthUpdate::OnUpdate
void OnUpdate(float deltaTime)
Definition:
TextUpdaters.cpp:64
HealthUpdate::HealthUpdate
HealthUpdate(HealthComponent *health)
Definition:
TextUpdaters.cpp:62
HealthUpdate
Definition:
TextUpdaters.hpp:27
ScoreUpdate
Definition:
TextUpdaters.hpp:19
TextUpdate
Definition:
BasicTextComponent.hpp:11
FPSUpdate
Definition:
TextUpdaters.hpp:13
HealthComponent
Definition:
HealthComponent.hpp:11
HealthComponent.hpp
PowerUpdate
Definition:
TextUpdaters.hpp:23
GameManager.hpp
BasicTextComponent.hpp
Generated on Tue Mar 16 2021 02:10:18 for SDL SPOOKY PLATFORMER ENGINE by
1.4.1