hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::ecs::Entity Class Reference

Base element, attachable with components. More...

#include <entity.hpp>

Public Member Functions

 Entity (const unsigned int id)
 Construct an entity with a unique id. More...
 
unsigned int getId () const
 Get the entity ID. More...
 
void setId (const unsigned int id)
 Change the entity ID. More...
 

Detailed Description

Base element, attachable with components.

See also
Engine

Definition at line 31 of file entity.hpp.

Constructor & Destructor Documentation

hx3d::ecs::Entity::Entity ( const unsigned int  id)

Construct an entity with a unique id.

Parameters
idID

Definition at line 26 of file entity.cpp.

Member Function Documentation

unsigned int hx3d::ecs::Entity::getId ( ) const

Get the entity ID.

Returns
Entity ID

Definition at line 28 of file entity.cpp.

void hx3d::ecs::Entity::setId ( const unsigned int  id)

Change the entity ID.

Parameters
idNew ID

Definition at line 32 of file entity.cpp.


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