|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
Marks a projectile as a boomerang and stores state for return logic. More...
#include <Boomerang.hpp>
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. | |
Marks a projectile as a boomerang and stores state for return logic.
Definition at line 16 of file Boomerang.hpp.
| float rtp::ecs::components::Boomerang::maxDistance {400.0f} |
Distance before returning.
Definition at line 19 of file Boomerang.hpp.
Referenced by rtp::server::EnemyShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().
| 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().
| bool rtp::ecs::components::Boomerang::returning {false} |
Whether the boomerang is on its way back.
Definition at line 20 of file Boomerang.hpp.
Referenced by rtp::server::EnemyShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().
| rtp::Vec2f rtp::ecs::components::Boomerang::startPos {0.0f, 0.0f} |
Spawn position to compute travel distance.
Definition at line 18 of file Boomerang.hpp.
Referenced by rtp::server::EnemyShootSystem::spawnBullet(), rtp::server::PlayerShootSystem::spawnBullet(), and rtp::server::PlayerShootSystem::spawnChargedBullet().