Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
Hitbox.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Air-Trap
4** File description:
5** Hitbox
6*/
7
8#pragma once
9
10namespace rtp::ecs::components {
15enum class CollisionType {
16 None,
17 Solid,
18 Trigger,
19 Damage,
20 Heal
21};
22
27enum class CollisionShape {
29 Circle
30};
31
45} // namespace rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
CollisionShape
Enum representing different shapes of hitboxes.
Definition Hitbox.hpp:27
CollisionType
Enum representing different types of collision behaviors.
Definition Hitbox.hpp:15
@ Solid
Solid object, blocks movement.
@ Heal
Healing object, restores health on contact.
@ Trigger
Trigger object, activates events on contact.
Component representing damage value.
Definition Damage.hpp:16
Component representing a rectangular hitbox.
Definition Hitbox.hpp:36
CollisionShape shape
Shape of the hitbox.
Definition Hitbox.hpp:42
float offsetY
Y offset from the entity's position.
Definition Hitbox.hpp:41
float width
Width of the hitbox.
Definition Hitbox.hpp:37
float offsetX
X offset from the entity's position.
Definition Hitbox.hpp:40
float radius
Radius for circular hitboxes.
Definition Hitbox.hpp:39
CollisionType collisionType
Type of collision behavior.
Definition Hitbox.hpp:43
float height
Height of the hitbox.
Definition Hitbox.hpp:38