galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::System Class Referenceabstract

Represents a system that operates on sets of components. More...

#include <System.hpp>

Collaboration diagram for galaxy::System:

Public Member Functions

 System (System &&) noexcept
 Move constructor.
Systemoperator= (System &&) noexcept
 Move assignment operator.
virtual ~System () noexcept
 Destructor.
virtual void update (EntityManager &em, Scene *scene)=0
 Abstract implementation for updating the system. Use the manager to retreive your components.
const std::string & id () const noexcept
 Get identifier.

Protected Member Functions

 System (const std::string &id) noexcept
 Constructor.

Protected Attributes

std::string m_id
 Debug id.

Private Member Functions

 System ()=delete
 Constructor.
Systemoperator= (const System &)=delete
 Copy assignment operator.
 System (const System &)=delete
 Copy constructor.

Detailed Description

Represents a system that operates on sets of components.

Definition at line 23 of file System.hpp.

Constructor & Destructor Documentation

◆ System() [1/4]

galaxy::System::System ( System && s)
noexcept

Move constructor.

Definition at line 17 of file System.cpp.

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

◆ ~System()

galaxy::System::~System ( )
virtualnoexcept

Destructor.

Definition at line 32 of file System.cpp.

◆ System() [2/4]

galaxy::System::System ( const std::string & id)
protectednoexcept

Constructor.

Parameters
idSystem debug identifier.

Definition at line 12 of file System.cpp.

◆ System() [3/4]

galaxy::System::System ( )
privatedelete

Constructor.

Here is the call graph for this function:

◆ System() [4/4]

galaxy::System::System ( const System & )
privatedelete

Copy constructor.

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

System & galaxy::System::operator= ( System && s)
noexcept

Move assignment operator.

Definition at line 22 of file System.cpp.

Here is the call graph for this function:

◆ update()

virtual void galaxy::System::update ( EntityManager & em,
Scene * scene )
pure virtual

Abstract implementation for updating the system. Use the manager to retreive your components.

Parameters
emEntitys to process.
sceneScene this system belongs to.
Here is the call graph for this function:

◆ id()

const std::string & galaxy::System::id ( ) const
nodiscardnoexcept

Get identifier.

Returns
Const string reference.

Definition at line 36 of file System.cpp.

◆ operator=() [2/2]

System & galaxy::System::operator= ( const System & )
privatedelete

Copy assignment operator.

Here is the call graph for this function:

Member Data Documentation

◆ m_id

std::string galaxy::System::m_id
protected

Debug id.

Definition at line 84 of file System.hpp.


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