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::EnemyAISystem Class Reference

System to handle enemy AI behavior. More...

#include <EnemyAISystem.hpp>

Inheritance diagram for rtp::server::EnemyAISystem:
Collaboration diagram for rtp::server::EnemyAISystem:

Public Member Functions

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

Private Attributes

ecs::Registry_registry
 Reference to the entity registry.
 
float _time {0.0f}
 Elapsed time for AI calculations.
 

Detailed Description

System to handle enemy AI behavior.

Definition at line 29 of file EnemyAISystem.hpp.

Constructor & Destructor Documentation

◆ EnemyAISystem()

rtp::server::EnemyAISystem::EnemyAISystem ( ecs::Registry registry)

Constructor for EnemyAISystem.

Parameters
registryReference to the entity registry

Definition at line 21 of file EnemyAISystem.cpp.

Member Function Documentation

◆ update()

Member Data Documentation

◆ _registry

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

Reference to the entity registry.

Definition at line 43 of file EnemyAISystem.hpp.

Referenced by update().

◆ _time

float rtp::server::EnemyAISystem::_time {0.0f}
private

Elapsed time for AI calculations.

Definition at line 44 of file EnemyAISystem.hpp.

Referenced by update().


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