/** * Fetch composition id for entity. * * A composition id is uniquely identified by a single Aspect. For performance reasons, each entity is * identified by its composition id. Adding or removing components from an entity will change its compositionId. * * @param entityId * @return composition identity. */ public int getIdentity(int entityId) { return entityToIdentity.get(entityId); }
/** * Fetch composition id for entity. * * A composition id is uniquely identified by a single Aspect. For performance reasons, each entity is * identified by its composition id. Adding or removing components from an entity will change its compositionId. * * @param entityId * @return composition identity. */ public int getIdentity(int entityId) { return entityToIdentity.get(entityId); }
/** * Fetch composition id for entity. * * A composition id is uniquely identified by a single Aspect. For performance reasons, each entity is * identified by its composition id. Adding or removing components from an entity will change its compositionId. * * @param entityId * @return composition identity. */ public int getIdentity(int entityId) { return entityToIdentity.get(entityId); }
/** Get component composition of entity. */ BitVector componentBits(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionBits.get(identityIndex); }
/** Get component composition of entity. */ BitVector componentBits(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionBits.get(identityIndex); }
/** Get component composition of entity. */ private Bag<ComponentMapper> componentMappers(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionMappers.get(identityIndex); }
/** Get component composition of entity. */ private Bag<ComponentMapper> componentMappers(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionMappers.get(identityIndex); }
/** Get component composition of entity. */ BitVector componentBits(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionBits.get(identityIndex); }
/** Get component composition of entity. */ private Bag<ComponentMapper> componentMappers(int entityId) { int identityIndex = entityToIdentity.get(entityId); return identityResolver.compositionMappers.get(identityIndex); }
TransmuteOperation getOperation(int entityId) { return operation(entityId, entityToIdentity.get(entityId)); }
TransmuteOperation getOperation(int entityId) { return operation(entityId, entityToIdentity.get(entityId)); }
/** * Adds the specified elements to the end of this bag. * <p> * If required, it also increases the capacity of the bag. * </p> * * @param other * elements to be added to this list */ public void addAll(ShortBag other) { for (int i = 0; i < other.size(); i++) { add(other.get(i)); } }
/** * Adds the specified elements to the end of this bag. * <p> * If required, it also increases the capacity of the bag. * </p> * * @param other * elements to be added to this list */ public void addAll(ShortBag other) { for (int i = 0; i < other.size(); i++) { add(other.get(i)); } }