Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Powerup.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Air-Trap
4** File description:
5** Powerup
6*/
7
8#pragma once
9#include <cstdint>
10
11namespace rtp::ecs::components {
16enum class PowerupType : uint8_t {
17 Heal = 1, // Red - Restore 1 heart
18 Speed = 2, // (unused)
19 DoubleFire = 3, // Yellow/White - Double fire for 20s
20 Shield = 4 // Green - Absorb 1 hit
21};
22
27struct Powerup {
29 float value{0.0f};
30 float duration{0.0f};
31};
32} // namespace rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
@ Heal
Healing object, restores health on contact.
PowerupType
Supported powerup types.
Definition Powerup.hpp:16
Component for double fire powerup.
Component representing a powerup pickup.
Definition Powerup.hpp:27
float duration
Duration for timed effects (0 = permanent)
Definition Powerup.hpp:30
PowerupType type
Powerup type.
Definition Powerup.hpp:28
float value
Heal amount or effect strength.
Definition Powerup.hpp:29
Component representing a shield that absorbs damage.
Definition Shield.hpp:16