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

An entity fired: one shot leaves it during the tick. More...

#include <aegis2d/shmup/weapons.hpp>

Public Attributes

ecs::Entity shooter
 Entity that fired.
 
Vec2 position {}
 Where it was (its Transform), the origin if it has none.
 
bool player = false
 true for a player's ship (it has a PlayerInput), false for an enemy.
 

Friends

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

Detailed Description

An entity fired: one shot leaves it during the tick.

Friends And Related Symbol Documentation

◆ operator==

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

Compares the events.

Member Data Documentation

◆ player

bool aegis2d::shmup::ShotFired::player = false

true for a player's ship (it has a PlayerInput), false for an enemy.

◆ position

Vec2 aegis2d::shmup::ShotFired::position {}

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

◆ shooter

ecs::Entity aegis2d::shmup::ShotFired::shooter

Entity that fired.


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