AnimEngine
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Entity Class Reference
Inheritance diagram for Entity:
Inheritance graph
[legend]
Collaboration diagram for Entity:
Collaboration graph
[legend]

Public Member Functions

 Entity (const std::string &name)
 
const ent_uuid_t & UUID () const
 
const std::string & getName () const
 
void setName (const std::string &name)
 
void addChild (Entity *entity)
 
virtual void unlink ()
 
virtual void link (Entity *parent)
 
virtual Entityreplace (Entity *replacement)
 Replace the node in the tree with 'replacement' and return original node ('this')
 
const std::map< ent_uuid_t, Entity * > & getChildren () const
 
size_t numChildren () const
 
bool hasParent () const
 
EntitygetParent ()
 
const EntitygetParent () const
 
- Public Member Functions inherited from PureComponent
virtual bool isDrawable () const =0
 
virtual bool isPoseable () const =0
 
virtual bool isPosed () const =0
 

Public Attributes

unsigned int traversal_scratch = 0
 

Protected Attributes

std::string _name
 
Entity_parent = nullptr
 
std::map< ent_uuid_t, Entity * > _children
 

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