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

An entity whose health reached zero blows up: an enemy shot down, or a player that loses a life. More...

#include <aegis2d/ecs/events.hpp>

Public Attributes

Entity entity
 Entity that was killed (Kill::victim).
 
Entity killer
 Attacker of the last hit (Kill::killer), e.g. the missile.
 
Vec2 position {}
 Where the entity was hit (its Transform), the origin if it has none.
 

Friends

bool operator== (const Explosion &, const Explosion &)=default
 Compares the events.
 

Detailed Description

An entity whose health reached zero blows up: an enemy shot down, or a player that loses a life.

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const Explosion &  ,
const Explosion &   
)
friend

Compares the events.

Member Data Documentation

◆ entity

Entity aegis2d::ecs::Explosion::entity

Entity that was killed (Kill::victim).

◆ killer

Entity aegis2d::ecs::Explosion::killer

Attacker of the last hit (Kill::killer), e.g. the missile.

◆ position

Vec2 aegis2d::ecs::Explosion::position {}

Where the entity was hit (its Transform), the origin if it has none.


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