RType
Public Member Functions | Protected Attributes | List of all members
IEntity Class Reference

#include <IEntity.hpp>

Public Member Functions

 IEntity ()
 Construct a new IEntity object. More...
 
 ~IEntity ()=default
 Destroy the IEntity object. More...
 
std::vector< std::shared_ptr< IComponentRType > > getComponents () const
 Get the Components object. More...
 
void addComponent (const std::shared_ptr< IComponentRType > &component)
 addComponent, add a component to the entity More...
 
std::string getAttribute () const
 Get the Attribute object. More...
 
void setAttribute (const std::string &attribute)
 Set the Attribute object. More...
 

Protected Attributes

std::vector< std::shared_ptr< IComponentRType > > _components
 
std::string _attribute
 

Detailed Description

Definition at line 14 of file IEntity.hpp.

Constructor & Destructor Documentation

◆ IEntity()

IEntity::IEntity ( )
inline

Construct a new IEntity object.

Definition at line 22 of file IEntity.hpp.

References setAttribute().

Here is the call graph for this function:

◆ ~IEntity()

IEntity::~IEntity ( )
default

Destroy the IEntity object.

Member Function Documentation

◆ addComponent()

void IEntity::addComponent ( const std::shared_ptr< IComponentRType > &  component)
inline

addComponent, add a component to the entity

Parameters
component

Definition at line 50 of file IEntity.hpp.

◆ getAttribute()

std::string IEntity::getAttribute ( ) const
inline

Get the Attribute object.

Returns
std::string

Definition at line 60 of file IEntity.hpp.

References _attribute.

◆ getComponents()

std::vector<std::shared_ptr<IComponentRType> > IEntity::getComponents ( ) const
inline

Get the Components object.

Returns
std::vector<std::shared_ptr<IComponentRType>>

Definition at line 39 of file IEntity.hpp.

◆ setAttribute()

void IEntity::setAttribute ( const std::string &  attribute)
inline

Set the Attribute object.

Parameters
attribute

Definition at line 70 of file IEntity.hpp.

References _attribute.

Referenced by IEntity().

Here is the caller graph for this function:

Member Data Documentation

◆ _attribute

std::string IEntity::_attribute
protected

Definition at line 77 of file IEntity.hpp.

Referenced by getAttribute(), and setAttribute().

◆ _components

std::vector<std::shared_ptr<IComponentRType> > IEntity::_components
protected

Definition at line 76 of file IEntity.hpp.


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