igor::iEntityView Class Reference

#include <iEntityView.h>

Public Member Functions

 iEntityView (const iaString &name="")
 
virtual ~iEntityView ()=default
 
template<typename T >
void registerType ()
 
bool checkCompatibility (iEntityPtr entity) const
 
std::vector< iEntityPtr > & getEntities ()
 
std::vector< iEntityPtr > & getInactiveEntities ()
 
const iaStringgetName () const
 

Friends

class iEntitySystem
 

Detailed Description

set of entities

Constructor & Destructor Documentation

◆ iEntityView()

igor::iEntityView::iEntityView ( const iaString name = "")

does nothing

◆ ~iEntityView()

virtual igor::iEntityView::~iEntityView ( )
virtualdefault

does nothing

Member Function Documentation

◆ checkCompatibility()

bool igor::iEntityView::checkCompatibility ( iEntityPtr  entity) const

checks if given type index of components is suported

Parameters
entitypointer of entity to check compatibility with

◆ getEntities()

std::vector< iEntityPtr > & igor::iEntityView::getEntities ( )
Returns
list of entities registered to this system

◆ getInactiveEntities()

std::vector< iEntityPtr > & igor::iEntityView::getInactiveEntities ( )
Returns
list of entities registered to this system but are currently inactive

◆ getName()

const iaString & igor::iEntityView::getName ( ) const
Returns
name of view

◆ registerType()

template<typename T >
void igor::iEntityView::registerType ( )
inline

register type of component

Friends And Related Function Documentation

◆ iEntitySystem

friend class iEntitySystem
friend

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