|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
System responsible for managing shield visual effects. More...
#include <ShieldSystem.hpp>
Public Member Functions | |
| ShieldSystem (ecs::Registry ®istry) | |
| Construct a new Shield System. | |
| void | update (float dt) override |
| Update shield animations and handle collision detection. | |
Public Member Functions inherited from rtp::ecs::ISystem | |
| virtual | ~ISystem () noexcept=default |
Private Attributes | |
| ecs::Registry & | _registry |
System responsible for managing shield visual effects.
This system handles client-side shield visual behavior:
Note: Actual damage blocking is handled server-side by the Shield component. This system only manages the visual feedback on the client.
Definition at line 31 of file ShieldSystem.hpp.
|
explicit |
Construct a new Shield System.
| registry | The ECS registry containing entities and components |
Definition at line 20 of file ShieldSystem.cpp.
|
overridevirtual |
Update shield animations and handle collision detection.
| dt | Delta time in seconds since last frame |
Updates:
Implements rtp::ecs::ISystem.
Definition at line 25 of file ShieldSystem.cpp.
References _registry, rtp::ecs::components::ShieldVisual::animationTime, rtp::net::EnemyBullet, rtp::ecs::Registry::get(), rtp::log::info(), rtp::ecs::Registry::kill(), rtp::net::Player, rtp::ecs::Registry::remove(), and rtp::ecs::components::BoundingBox::width.
|
private |
Definition at line 52 of file ShieldSystem.hpp.
Referenced by update().