YAGE  v0.1.4.0
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
yage::EntityManager Class Reference

Manages entities in a space. More...

#include <entitymanager.h>

Public Member Functions

 EntityManager ()=default
 Default instance of an EntityManager. More...
 
 EntityManager (Space *space)
 Creates an instance of the entity manager, which refers back to the space it was created in and belongs to. More...
 
 EntityManager (Space *space, std::size_t n)
 Creates an instance of the entitiy manager with an initial size. More...
 
unsigned createEntity ()
 Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it. More...
 
Entity createEntityInstance ()
 Creates an Entity and returns it. More...
 

Detailed Description

Manages entities in a space.

Constructor & Destructor Documentation

yage::EntityManager::EntityManager ( )
default

Default instance of an EntityManager.

yage::EntityManager::EntityManager ( Space space)

Creates an instance of the entity manager, which refers back to the space it was created in and belongs to.

Parameters
spaceCurrent space that the EntityManager belongs to.
yage::EntityManager::EntityManager ( Space space,
std::size_t  n 
)

Creates an instance of the entitiy manager with an initial size.

Parameters
spaceCurrent space that the EntityManager belongs to.
nInitial size of the EntityManager.

Member Function Documentation

unsigned yage::EntityManager::createEntity ( )

Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it.

Returns
The handle to the entity that was created in the space.
Entity yage::EntityManager::createEntityInstance ( )

Creates an Entity and returns it.

Returns
The entity that was created by the entity manager in the current space.

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