|
Aegis2D
Modular C++26 2D game engine for networked games
|
What apply_damage() did during one tick, in the order of the contacts. More...
#include <aegis2d/ecs/damage.hpp>
Public Member Functions | |
| void | clear () noexcept |
| Empties the lists and keeps their memory. | |
Public Attributes | |
| std::vector< Hit > | hits |
| Every hit that removed health points. | |
| std::vector< Kill > | kills |
| Entities whose health reached zero or less during the tick, once each. | |
| std::vector< Entity > | consumed |
| Attackers consumed by their hit (missiles), once each. | |
What apply_damage() did during one tick, in the order of the contacts.
The game reads it to score kills, play sounds, spawn explosions or give a player another life, then calls remove_casualties().
|
inlinenoexcept |
Empties the lists and keeps their memory.
| std::vector<Entity> aegis2d::ecs::DamageReport::consumed |
Attackers consumed by their hit (missiles), once each.
| std::vector<Hit> aegis2d::ecs::DamageReport::hits |
Every hit that removed health points.
| std::vector<Kill> aegis2d::ecs::DamageReport::kills |
Entities whose health reached zero or less during the tick, once each.