Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
MouvementPattern.hpp
Go to the documentation of this file.
1/*
2** EPITECH PROJECT, 2025
3** Air-Trap
4** File description:
5** EnemyPattern
6*/
7
8#pragma once
9
10namespace rtp::ecs::components {
11
16enum class Patterns {
18 ZigZag,
19 Circular,
20 SineWave,
21 Kamikaze,
22 Static
23};
24
31 float speed{0.0f};
32 float amplitude{0.0f};
33 float frequency{0.0f};
34};
35} // namespace rtp::ecs::components
File : Ammo.hpp License: MIT Author : Elias Josué HAJJAR LLAUQUEN elias-josue.hajjar-llauquen@epitech...
Definition Ammo.hpp:13
Patterns
Enum representing different enemy movement patterns.
@ StraightLine
Moves in a straight line.
@ Static
Remains stationary.
@ SineWave
Moves in a sine wave pattern.
@ Circular
Moves in a circular pattern.
@ ZigZag
Moves in a zigzag pattern.
@ Kamikaze
Moves directly towards the player.
Component representing a movement pattern.
float speed
Speed of the following the pattern.
float frequency
Frequency for patterns like SineWave.
float amplitude
Amplitude for patterns like SineWave.
Patterns pattern
The movement pattern type.