-
Notifications
You must be signed in to change notification settings - Fork 0
API cxEntity
fabs edited this page Feb 25, 2017
·
1 revision
The cxEntity class is the basic entity class. You can attach components to it. Those components are a kind of a dataholder. This data will then be processed by the system, which makes some position calculation or modify values and renders the new data.
the constructor takes a name. so later when you debug you can easily identify the entity.
adds a component to the entity. Warning you can have multiple components with the same tag per entity
get all components with the speicified tag
check if the entity has components with the given tag
remove a component with the given tag
get a list of components attached to the entity
Remove the entity from the world
get the world the entity is attached to