Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::en::EntityManager Class Reference

#include <EntityManager.h>

Public Member Functions

 EntityManager ()
 Constructor.
 ~EntityManager ()
 Destructor.
EntityCreateEntity ()
 Creates an entity.
int ReserveID (int count)
 Reserve some entity ID to create Entity outside the EntityManager.

Protected Attributes

std::map< int, Entity * > m_vEntities
 The list of entities.
std::queue< int > m_vEntityFreeIDs
 The free entities ID.
int m_iNextEntityID

Detailed Description

Definition at line 14 of file EntityManager.h.

Constructor & Destructor Documentation

kge::en::EntityManager::EntityManager ( )

Constructor.

kge::en::EntityManager::~EntityManager ( )

Destructor.

Member Function Documentation

Entity* kge::en::EntityManager::CreateEntity ( )

Creates an entity.

int kge::en::EntityManager::ReserveID ( int  count)

Reserve some entity ID to create Entity outside the EntityManager.

Parameters
countThe count of Entity ID to reserve
Returns
Returns the first Entity ID of reserved IDs

Member Data Documentation

int kge::en::EntityManager::m_iNextEntityID
protected

Definition at line 37 of file EntityManager.h.

std::map<int, Entity*> kge::en::EntityManager::m_vEntities
protected

The list of entities.

Definition at line 35 of file EntityManager.h.

std::queue<int> kge::en::EntityManager::m_vEntityFreeIDs
protected

The free entities ID.

Definition at line 36 of file EntityManager.h.


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