Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Boomerang.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "RType/Math/Vec2.hpp"
9
10namespace rtp::ecs::components {
11
16struct Boomerang {
17 uint32_t ownerIndex{0};
18 rtp::Vec2f startPos{0.0f, 0.0f};
19 float maxDistance{400.0f};
20 bool returning{false};
21};
22
23} // namespace rtp::ecs::components
Declaration of the 2-dimensional vector class.
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Marks a projectile as a boomerang and stores state for return logic.
Definition Boomerang.hpp:16
bool returning
Whether the boomerang is on its way back.
Definition Boomerang.hpp:20
uint32_t ownerIndex
ECS entity index of the owner who fired this boomerang.
Definition Boomerang.hpp:17
rtp::Vec2f startPos
Spawn position to compute travel distance.
Definition Boomerang.hpp:18
float maxDistance
Distance before returning.
Definition Boomerang.hpp:19