group2
0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
Health.hpp
Go to the documentation of this file.
1
3
4
#pragma once
5
7
struct
Health
8
{
9
float
health
= 100.0f;
10
float
armor
= 100.0f;
11
float
overShield
= 0.0f;
12
float
healTimer
= 0.0f;
13
};
Health
ECS component: player health, armor, and passive heal cooldown.
Definition
Health.hpp:8
Health::health
float health
Current health points (0 = dead).
Definition
Health.hpp:9
Health::overShield
float overShield
Definition
Health.hpp:11
Health::armor
float armor
Current armor points (absorbs damage before health).
Definition
Health.hpp:10
Health::healTimer
float healTimer
Seconds remaining before passive healing begins.
Definition
Health.hpp:12
src
ecs
components
Health.hpp
Generated by
1.16.1