public interface ComponentVisibility
Modifier and Type | Method and Description |
---|---|
boolean |
collectChanges(java.util.Queue<com.simsilica.es.EntityChange> changes)
Recalculates the current visible set and returns the differences as
EntityChanges.
|
<T extends com.simsilica.es.EntityComponent> |
getComponent(com.simsilica.es.EntityId entityId,
java.lang.Class<T> type)
Returns the visibility filtered value of the component for the specified
entity or null if the component either isn't set or is invisible.
|
java.lang.Class<? extends com.simsilica.es.EntityComponent> |
getComponentType()
Returns the type of component of which this ComponentVisibility
strategy controls the visibility.
|
java.util.Set<com.simsilica.es.EntityId> |
getEntityIds(com.simsilica.es.ComponentFilter filter)
Returns all of the entity IDs that match the specified filter and are
visible.
|
void |
initialize(com.simsilica.es.EntityData delegate)
Called to initialize this ComponentVisibilty strategy once attached
to an EntityDataWrapper.
|
java.lang.Class<? extends com.simsilica.es.EntityComponent> getComponentType()
void initialize(com.simsilica.es.EntityData delegate)
<T extends com.simsilica.es.EntityComponent> T getComponent(com.simsilica.es.EntityId entityId, java.lang.Class<T> type)
java.util.Set<com.simsilica.es.EntityId> getEntityIds(com.simsilica.es.ComponentFilter filter)
boolean collectChanges(java.util.Queue<com.simsilica.es.EntityChange> changes)