The Joe Engine
Joe's engine programming playground
JoeEngine::JEEntityManager Class Reference

The Entity Manager class. More...

#include <EntityManager.h>

Public Member Functions

 JEEntityManager ()
 Constructor. More...
 
 ~JEEntityManager ()=default
 Destructor (default). More...
 
Entity SpawnEntity ()
 Spawn entity. More...
 
void DestroyEntity (Entity e)
 Destroy entity. More...
 
uint32_t NumEntities ()
 Get current number of entities. More...
 

Detailed Description

The Entity Manager class.

Class that manages the list of active entities in the scene. Currently, this class is not actually vital.

Constructor & Destructor Documentation

◆ JEEntityManager()

JoeEngine::JEEntityManager::JEEntityManager ( )
inline

Constructor.

Initializes counter to zero.

◆ ~JEEntityManager()

JoeEngine::JEEntityManager::~JEEntityManager ( )
default

Destructor (default).

Member Function Documentation

◆ DestroyEntity()

void JoeEngine::JEEntityManager::DestroyEntity ( Entity  e)

Destroy entity.

Removes a specific entity from the list.

◆ NumEntities()

uint32_t JoeEngine::JEEntityManager::NumEntities ( )
inline

Get current number of entities.

◆ SpawnEntity()

Entity JoeEngine::JEEntityManager::SpawnEntity ( )

Spawn entity.

Adds an entity to the list and increments the id counter.


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