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

Has to keep track of all the different entities and their current state. More...

#include <entity.h>

Public Member Functions

Entity create_entity ()
 
EntityManagerdelete_entity (Entity entity)
 
bool is_valid (Entity entity) const
 
EntityManageradd_component (Entity entity, BaseComponent *component)
 

Public Attributes

std::vector< ComponentGroupcomponent_group_
 
std::vector< ComponentMaskcomponent_masks_
 
std::vector< Entitydeleted_
 

Detailed Description

Has to keep track of all the different entities and their current state.

The key actions on an Entity are: deleting, creating.

Member Function Documentation

EntityManager & yage::EntityManager::add_component ( Entity  entity,
BaseComponent component 
)
Entity yage::EntityManager::create_entity ( )
EntityManager & yage::EntityManager::delete_entity ( Entity  entity)
bool yage::EntityManager::is_valid ( Entity  entity) const

Member Data Documentation

std::vector<ComponentGroup> yage::EntityManager::component_group_
std::vector<ComponentMask> yage::EntityManager::component_masks_
std::vector<Entity> yage::EntityManager::deleted_

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