Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
NavigationSystem Class Reference

#include <ECS_Systems.h>

+ Inheritance diagram for NavigationSystem:
+ Collaboration diagram for NavigationSystem:

Public Member Functions

 NavigationSystem ()
 
virtual void Process () override
 
void RequestPath (EntityID entity, const Vector &targetPos)
 
void FollowPath (EntityID entity, float deltaTime)
 
bool NeedsRepath (EntityID entity)
 
- Public Member Functions inherited from ECS_System
 ECS_System ()
 
virtual void Render ()
 
virtual void RenderDebug ()
 
void AddEntity (EntityID entity)
 
void RemoveEntity (EntityID entity)
 

Additional Inherited Members

- Public Attributes inherited from ECS_System
ComponentSignature requiredSignature
 
std::set< EntityIDm_entities
 

Detailed Description

Definition at line 140 of file ECS_Systems.h.

Constructor & Destructor Documentation

◆ NavigationSystem()

NavigationSystem::NavigationSystem ( )

Definition at line 1547 of file ECS_Systems.cpp.

References GetComponentTypeID_Static(), and ECS_System::requiredSignature.

+ Here is the call graph for this function:

Member Function Documentation

◆ FollowPath()

void NavigationSystem::FollowPath ( EntityID  entity,
float  deltaTime 
)

Definition at line 1618 of file ECS_Systems.cpp.

References World::Get(), World::GetComponent(), GetComponentTypeID_Static(), Vector::Length(), Vector::Normalize(), Vector::x, and Vector::y.

+ Here is the call graph for this function:

◆ NeedsRepath()

bool NavigationSystem::NeedsRepath ( EntityID  entity)

Definition at line 1665 of file ECS_Systems.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ Process()

void NavigationSystem::Process ( )
overridevirtual

Reimplemented from ECS_System.

Definition at line 1554 of file ECS_Systems.cpp.

References GameEngine::fDt, FollowPath, World::Get(), World::GetComponent(), GetComponentTypeID_Static(), ECS_System::m_entities, and RequestPath().

+ Here is the call graph for this function:

◆ RequestPath()

void NavigationSystem::RequestPath ( EntityID  entity,
const Vector targetPos 
)

Definition at line 1577 of file ECS_Systems.cpp.

References NavigationMap::Get(), World::Get(), World::GetComponent(), GetComponentTypeID_Static(), and Ground.

Referenced by Process().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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