R-Type
2
Doom but in better
Loading...
Searching...
No Matches
WeaponSystem.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Registry.hpp
"
4
#include "
Weapon.hpp
"
5
#include "
Position.hpp
"
6
#include "
Type.hpp
"
7
20
void
weapon_system
(
Registry
&
r
,
ComponentContainer<Weapon>
&weapons,
ComponentContainer<Position>
&positions,
ComponentContainer<Type>
&types);
21
28
void
make_shot
(
Registry
&
r
, std::size_t
id
);
Position.hpp
Registry.hpp
r
Registry * r
Definition
Tests.cpp:4
Type.hpp
weapon_system
void weapon_system(Registry &r, ComponentContainer< Weapon > &weapons, ComponentContainer< Position > &positions, ComponentContainer< Type > &types)
Handles the firing of weapons and updates their states.
Definition
WeaponSystem.cpp:6
make_shot
void make_shot(Registry &r, std::size_t id)
Changes the state of the weapon.
Definition
WeaponSystem.cpp:23
Weapon.hpp
ComponentContainer
Manages a collection of components associated with entities in an ECS (Entity-Component-System) archi...
Definition
ComponentContainer.hpp:24
Registry
Manages entities and their associated components, enabling the creation, deletion,...
Definition
Registry.hpp:23
game_source
systems
include
WeaponSystem.hpp
Generated on Thu Feb 6 2025 22:34:20 for R-Type by
1.12.0