Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d::ecs::DamageReport Struct Reference

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.
 

Detailed Description

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().

Member Function Documentation

◆ clear()

void aegis2d::ecs::DamageReport::clear ( )
inlinenoexcept

Empties the lists and keeps their memory.

Member Data Documentation

◆ consumed

std::vector<Entity> aegis2d::ecs::DamageReport::consumed

Attackers consumed by their hit (missiles), once each.

◆ hits

std::vector<Hit> aegis2d::ecs::DamageReport::hits

Every hit that removed health points.

◆ kills

std::vector<Kill> aegis2d::ecs::DamageReport::kills

Entities whose health reached zero or less during the tick, once each.


The documentation for this struct was generated from the following file: