|
Aegis2D
Modular C++26 2D game engine for networked games
|
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. | |
An entity whose health reached zero blows up: an enemy shot down, or a player that loses a life.
| Entity aegis2d::ecs::Explosion::entity |
Entity that was killed (Kill::victim).
| Entity aegis2d::ecs::Explosion::killer |
Attacker of the last hit (Kill::killer), e.g. the missile.
| Vec2 aegis2d::ecs::Explosion::position {} |
Where the entity was hit (its Transform), the origin if it has none.