Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::Boomerang Struct Reference

Marks a projectile as a boomerang and stores state for return logic. More...

#include <Boomerang.hpp>

Collaboration diagram for rtp::ecs::components::Boomerang:

Public Attributes

uint32_t ownerIndex {0}
 ECS entity index of the owner who fired this boomerang.
 
rtp::Vec2f startPos {0.0f, 0.0f}
 Spawn position to compute travel distance.
 
float maxDistance {400.0f}
 Distance before returning.
 
bool returning {false}
 Whether the boomerang is on its way back.
 

Detailed Description

Marks a projectile as a boomerang and stores state for return logic.

Definition at line 16 of file Boomerang.hpp.

Member Data Documentation

◆ maxDistance

float rtp::ecs::components::Boomerang::maxDistance {400.0f}

◆ ownerIndex

uint32_t rtp::ecs::components::Boomerang::ownerIndex {0}

ECS entity index of the owner who fired this boomerang.

Definition at line 17 of file Boomerang.hpp.

Referenced by rtp::server::EnemyShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().

◆ returning

bool rtp::ecs::components::Boomerang::returning {false}

◆ startPos

rtp::Vec2f rtp::ecs::components::Boomerang::startPos {0.0f, 0.0f}

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