|
Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
|
#include <HomingSystem.hpp>
Public Member Functions | |
| HomingSystem (ecs::Registry ®istry) | |
| 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 |
Definition at line 20 of file HomingSystem.hpp.
|
explicit |
Definition at line 13 of file HomingSystem.cpp.
|
overridevirtual |
Update system logic for one frame.
| registry | The entity registry to operate on |
| deltaTime | Time elapsed since last update in seconds |
Implements rtp::ecs::ISystem.
Definition at line 17 of file HomingSystem.cpp.
References _registry, rtp::net::Boss, rtp::net::Boss2, rtp::ecs::Registry::get(), rtp::details::VecBase< T, N >::length(), rtp::details::VecBase< T, N >::normalized(), rtp::net::Player, rtp::net::Scout, rtp::details::VecBase< T, N >::squaredLength(), rtp::net::Tank, rtp::Vec2< T >::x, and rtp::ecs::Registry::zipView().
|
private |
Definition at line 26 of file HomingSystem.hpp.
Referenced by update().