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::Space Class Reference

Space that keeps track of all the entities, componenets and runs the systems on the data to update them. More...

#include <space.h>

Public Member Functions

 Space ()
 Default instance for a space. More...
 
unsigned createEntity ()
 Create an entity that will belong to this space, and return the handle to the user. More...
 

Detailed Description

Space that keeps track of all the entities, componenets and runs the systems on the data to update them.

There can be multiple instances of a space, which can be used, for example, for different levels in the game that can be loaded separately, or a game menu that can be loaded above the other spaces when the user presses on pause.

Constructor & Destructor Documentation

yage::Space::Space ( )

Default instance for a space.

Member Function Documentation

unsigned yage::Space::createEntity ( )

Create an entity that will belong to this space, and return the handle to the user.

The Entity class itself should not be visible to the user, as the user only needs to worry about the handle when referring to the Entity and changing it.


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