R-TYPE
Public Member Functions | List of all members
ECS::Entity Class Reference

#include <Entity.hpp>

Public Member Functions

 Entity (std::size_t id, EntityType type)
 
 Entity (EntityType type=ECS::EntityType::ERROR)
 
 ~Entity ()=default
 
 Entity (Entity const &)=default
 
 Entity (Entity &&) noexcept=default
 
Entityoperator= (Entity const &)=default
 
Entityoperator= (Entity &&) noexcept=default
 
std::size_t getId () const
 
EntityType getType () const
 

Constructor & Destructor Documentation

◆ Entity() [1/4]

ECS::Entity::Entity ( std::size_t  id,
ECS::EntityType  type 
)

This function is a constructor for the Entity class.

Parameters
idThe id of the entity.
typeThe type of entity.

◆ Entity() [2/4]

ECS::Entity::Entity ( ECS::EntityType  type = ECS::EntityType::ERROR)

◆ ~Entity()

ECS::Entity::~Entity ( )
default

◆ Entity() [3/4]

ECS::Entity::Entity ( Entity const &  )
default

◆ Entity() [4/4]

ECS::Entity::Entity ( Entity &&  )
defaultnoexcept

Member Function Documentation

◆ getId()

std::size_t ECS::Entity::getId ( ) const

std::size_t ECS::Entity::getId() const {return _id;}

This function returns the id of the entity

Returns
The id of the entity.

◆ getType()

ECS::EntityType ECS::Entity::getType ( ) const

Returns the type of the entity.

Returns
The type of the entity.

◆ operator=() [1/2]

Entity& ECS::Entity::operator= ( Entity &&  )
defaultnoexcept

◆ operator=() [2/2]

Entity& ECS::Entity::operator= ( Entity const &  )
default

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