|
Aegis2D
Modular C++26 2D game engine for networked games
|
How much damage an entity can still take. More...
#include <aegis2d/ecs/components.hpp>
Public Member Functions | |
| constexpr bool | depleted () const noexcept |
| Tells whether the entity has no health left. | |
Public Attributes | |
| std::int32_t | points = 1 |
| Remaining health points. | |
How much damage an entity can still take.
A damage system subtracts from points; the entity is destroyed when it reaches zero or less.
|
inlineconstexprnoexcept |
Tells whether the entity has no health left.
true when points is zero or negative. | std::int32_t aegis2d::ecs::Health::points = 1 |
Remaining health points.