/** @param index the index of the bit to clear * @throws ArrayIndexOutOfBoundsException if index < 0 or index >= words.length */ public void unsafeClear(int index) { clear(index); }
public void set(int bitIndex, boolean value) { if (value == true) { set(bitIndex); } else { clear(bitIndex); } }
public void set(int fromIndex, int toIndex, boolean value) { if (value == true) { set(fromIndex, toIndex); } else { clear(fromIndex, toIndex); } }
IntBag getPendingPurge() { pendingPurge.toIntBag(toPurge); pendingPurge.clear(); return toPurge; }
/** @param index the index of the bit to set * @throws ArrayIndexOutOfBoundsException if index < 0 */ public void set(int index, boolean value) { if (value) { set(index); } else { clear(index); } }
IntBag getPendingPurge() { pendingPurge.toIntBag(toPurge); pendingPurge.clear(); return toPurge; }
public void clear(int bitIndex) { checkIndex(bitIndex); clear(array, bitIndex); }
public void preWrite(SaveFileFormat save) { componentIds.clear(); referencedComponents.clear(); inspectComponentTypes(save); extractComponents(save); }
@Override void purge() { if (pool != null) purgeWithPool(); else purgeNoPool(); idBits.clear(); }
@Override void purge() { if (pool != null) purgeWithPool(); else purgeNoPool(); idBits.clear(); }
void deleted(IntBag entities) { int[] ids = entities.getData(); for (int i = 0, s = entities.size(); s > i; i++) { int id = ids[i]; if (registered.get(id)) { String removedTag = tagsByEntity.remove(world.getEntity(id)); entitiesByTag.remove(removedTag); registered.clear(id); } } }
void deleted(IntBag entities) { int[] ids = entities.getData(); for (int i = 0, s = entities.size(); s > i; i++) { int id = ids[i]; if (registered.get(id)) { String removedTag = tagsByEntity.remove(world.getEntity(id)); entitiesByTag.remove(removedTag); registered.clear(id); } } }
@Override boolean unmark(int entityId) { if (idBits.get(entityId)) { idBits.clear(entityId); if (pool != null) { pool.free((PooledComponent) components.get(entityId)); } return true; } else { return false; } }
@Override boolean unmark(int entityId) { if (idBits.get(entityId)) { idBits.clear(entityId); if (pool != null) { pool.free((PooledComponent) components.get(entityId)); } return true; } else { return false; } }
TransmuteOperation createOperation(int entityId) { BitVector componentBits = cm.componentBits(entityId); bs.clear(); bs.or(componentBits); bs.or(additions); bs.andNot(removals); int compositionId = cm.compositionIdentity(bs); return new TransmuteOperation(compositionId, getAdditions(componentBits), getRemovals(componentBits)); }
TransmuteOperation createOperation(int entityId) { BitVector componentBits = cm.componentBits(entityId); bs.clear(); bs.or(componentBits); bs.or(additions); bs.andNot(removals); int compositionId = cm.compositionIdentity(bs); return new TransmuteOperation(compositionId, getAdditions(componentBits), getRemovals(componentBits)); }