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
7struct Health
8{
9 float health = 100.0f;
10 float armor = 100.0f;
11 float overShield = 0.0f;
12 float healTimer = 0.0f;
13};
ECS component: player health, armor, and passive heal cooldown.
Definition Health.hpp:8
float health
Current health points (0 = dead).
Definition Health.hpp:9
float overShield
Definition Health.hpp:11
float armor
Current armor points (absorbs damage before health).
Definition Health.hpp:10
float healTimer
Seconds remaining before passive healing begins.
Definition Health.hpp:12