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

The world class create EntityManager. More...

#include <World.h>

Public Member Functions

 World ()
 Constructor.
 ~World ()
 Destructor.
void AddEntity (Entity *pEn)
void RemoveEntity (Entity *pEn)
 Remove an entity from World.
void AddSystem (System *pSys)
 Adds a system to world.
void Update (float fElasped)
 Updates the World.
void OnMessage (Message *msg)
 Sends a message to World systems.

Protected Attributes

std::map< int, Entity * > m_vEntities
 The list of entities.
std::vector< System * > m_vSystems

Detailed Description

The world class create EntityManager.

Definition at line 17 of file World.h.

Constructor & Destructor Documentation

kge::en::World::World ( )

Constructor.

kge::en::World::~World ( )

Destructor.

Member Function Documentation

void kge::en::World::AddEntity ( Entity pEn)

Adds an entity to the World. Use EntityCreator to create an entity.

void kge::en::World::AddSystem ( System pSys)

Adds a system to world.

void kge::en::World::OnMessage ( Message msg)

Sends a message to World systems.

void kge::en::World::RemoveEntity ( Entity pEn)

Remove an entity from World.

void kge::en::World::Update ( float  fElasped)

Updates the World.

Member Data Documentation

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

The list of entities.

Definition at line 45 of file World.h.

std::vector<System*> kge::en::World::m_vSystems
protected

Definition at line 46 of file World.h.


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