boolean |
Engine.addComponent(Entity entity,
Type componentType,
Object component) |
Adds an exisiting component to an exisiting entity
|
protected boolean |
ComponentManager.addComponentToEntity(Type componentType,
Object componentData,
Entity entity) |
Adds the specified component to the provided entity.
|
void |
Engine.destroyEntity(Entity entity) |
Signals each manager to remove the specified entity
|
void |
ComponentManager.entityDestroyed(Entity entity,
BitSet entityRegistrations) |
Signals to the ComponentManager the entity was destroyed.
|
protected void |
SystemManager.entityDestroyed(Entity entity) |
Signals the SystemManager that an entity was destroyed.
|
boolean |
Engine.entityHasComponent(Entity entity,
Type componentType) |
Checks if the entity is subscribed to the provided type
|
boolean |
ComponentManager.entityHasComponentData(Entity entity,
Type componentType) |
Checks if the entity contains data for the provided component
|
void |
SystemManager.entityRegistrationsChanged(Entity entity,
BitSet entityRegistrations) |
Signals the SystemManager that an entity had its registrations changed, so
evaluate if the entity is still relevant to each system.
|
Object |
ComponentManager.getComponent(Type componentType,
Entity entity) |
Gets the component data associated with the entity
|
Object |
Engine.getComponentData(Entity entity,
Type componentType) |
Gets the actual data of the component associated to the entity.
|
BitSet |
EntityManager.getRegistrations(Entity entity) |
Gets the BitSet containing the registrations of the entity.
|
void |
ComponentManager.moveAllComponentData(Entity sourceEntity,
Entity destinationEntity,
BitSet sourceRegistrations) |
Moves all component data from one entity to another
|
boolean |
ComponentManager.moveComponentData(Entity sourceEntity,
Entity destinationEntity,
Type component) |
Moves a single component data from one entity to another
|
protected boolean |
EntityManager.registerComponent(int component,
Entity entity) |
Registers the specified component index to the entity
|
boolean |
Engine.removeComponent(Entity entity,
Type componentType) |
Removes the component from the specified entity
|
boolean |
ComponentManager.removeComponentFromEntity(Type componentType,
Entity entity) |
Removes the specified component from the entity.
|
protected void |
EntityManager.removeEntity(Entity entity) |
Adds the entity index back into unusedEntities, and sets the registrations to null
|
protected void |
EntityManager.setRegistrations(Entity entity,
BitSet registrations) |
Sets the entity's registrations to the provided BitSet
|
protected boolean |
EntityManager.unregisterComponent(int component,
Entity entity) |
Unregisters the specified component from the entity
|