TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CellEntity Class Reference
Inheritance diagram for CellEntity:
Inheritance graph
[legend]
Collaboration diagram for CellEntity:
Collaboration graph
[legend]

Public Member Functions

 CellEntity (Manager &mManager)
 
void setOwnerCell (Cell *cell)
 
CellgetOwnerCell () const
 
- Public Member Functions inherited from Entity
void setId (EntityID m_id)
 
EntityID getId ()
 
void hide ()
 
void reveal ()
 
bool isHidden ()
 
 Entity (Manager &mManager)
 
virtual void update (float deltaTime)
 
virtual void cellUpdate ()
 
void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
virtual void onCreation ()
 
EntitygetParentEntity ()
 
void setParentEntity (Entity *pEntity)
 
bool isActive ()
 
virtual void destroy ()
 
bool hasGroup (Group mGroup)
 
virtual void addToGroup (Group mGroup)
 
virtual void removeGroup (Group mGroup)
 
template<typename T >
bool hasComponent () const
 
template<typename T , typename... TArgs>
T & addComponent (TArgs &&... mArgs)
 have addScript function
 
template<typename T >
void removeComponent ()
 
virtual void setComponentEntity (Component *c)
 
virtual void setComponentEntity (NodeComponent *c)
 
virtual void setComponentEntity (LinkComponent *c)
 
template<typename T >
T & GetComponent () const
 
template<typename T >
T * GetComponentPtr ()
 
bool hasComponentByName (const std::string &componentName)
 
ManagergetManager ()
 
virtual void imgui_print ()
 
virtual void imgui_display ()
 
virtual void removeEntityFromCell ()
 
virtual void removeFromCell ()
 
virtual void removeFromCells ()
 

Public Attributes

CellownerCell = nullptr
 
- Public Attributes inherited from Entity
bool isVertical = false
 
float slotSpacing = 0.0f
 
std::map< EntityID, EntityID > children
 child_index(id) -> real_entity_id
 
std::vector< std::unique_ptr< BaseComponent > > components
 

Additional Inherited Members

- Protected Attributes inherited from Entity
bool active = true
 
bool hidden = false
 
ComponentArray componentArray = {}
 
ComponentBitSet componentBitSet
 
GroupBitSet groupBitSet
 
std::optional< ComponentArray > nodeComponentArray
 
std::optional< ComponentBitSet > nodeComponentBitSet
 
Entityparent_entity = nullptr
 
Managermanager
 the object doesnt move, so we can have pointer
 

Member Function Documentation

◆ getOwnerCell()

Cell * CellEntity::getOwnerCell ( ) const
inlinevirtual

Reimplemented from Entity.


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