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

Entity convenience class. More...

#include <entity.h>

Public Member Functions

 Entity (EntityHandle handle)
 Creates an instance of an Entity with a handle that is associated to it. More...
 
EntityHandle getHandle () const
 Handle getter, as the user will only interact with the id itself. More...
 

Detailed Description

Entity convenience class.

It contains handles to where the entity is in the entity manager of the space, and a pointer back to the space itself.

This class cannot be instantiated outside of a Space and should only be instantiated through an entity manager, as otherwise the handle will not have a meaning.

Constructor & Destructor Documentation

yage::Entity::Entity ( EntityHandle  handle)

Creates an instance of an Entity with a handle that is associated to it.

This handle refers to the position of he Entity in the list that is held by the EntityManager, and therefore the id is enough to refer to it.

Member Function Documentation

unsigned yage::Entity::getHandle ( ) const

Handle getter, as the user will only interact with the id itself.

The handle is the unique identifier that the user can use to refer to the entity.


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