Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::server::BoomerangSystem Class Reference

#include <BoomerangSystem.hpp>

Inheritance diagram for rtp::server::BoomerangSystem:
Collaboration diagram for rtp::server::BoomerangSystem:

Public Member Functions

 BoomerangSystem (ecs::Registry &registry)
 
void update (float dt) override
 Update system logic for one frame.
 
- Public Member Functions inherited from rtp::ecs::ISystem
virtual ~ISystem () noexcept=default
 

Private Attributes

ecs::Registry_registry
 

Detailed Description

Definition at line 18 of file BoomerangSystem.hpp.

Constructor & Destructor Documentation

◆ BoomerangSystem()

rtp::server::BoomerangSystem::BoomerangSystem ( ecs::Registry registry)
explicit

Definition at line 11 of file BoomerangSystem.cpp.

Member Function Documentation

◆ update()

void rtp::server::BoomerangSystem::update ( float  deltaTime)
overridevirtual

Update system logic for one frame.

Parameters
registryThe entity registry to operate on
deltaTimeTime elapsed since last update in seconds

Implements rtp::ecs::ISystem.

Definition at line 15 of file BoomerangSystem.cpp.

References _registry, rtp::log::debug(), rtp::ecs::Registry::get(), rtp::ecs::Entity::index(), rtp::log::info(), rtp::ecs::Registry::kill(), and rtp::Vec2< T >::x.

Member Data Documentation

◆ _registry

ecs::Registry& rtp::server::BoomerangSystem::_registry
private

Definition at line 24 of file BoomerangSystem.hpp.

Referenced by update().


The documentation for this class was generated from the following files: