Java 类com.badlogic.gdx.utils.BooleanArray 实例源码

项目:Inspiration    文件:SoftRoleSlotAssignmentStrategy.java   
/** Creates a {@code SoftRoleSlotAssignmentStrategy} with the given slot cost provider and cost threshold.
 * @param slotCostProvider the slot cost provider
 * @param costThreshold is a slot-cost limit, beyond which a slot is considered to be too expensive to consider occupying. */
public SoftRoleSlotAssignmentStrategy (SlotCostProvider<T> slotCostProvider, float costThreshold) {
    this.slotCostProvider = slotCostProvider;
    this.costThreshold = costThreshold;

    this.filledSlots = new BooleanArray();
}
项目:gdx-ai    文件:SoftRoleSlotAssignmentStrategy.java   
/** Creates a {@code SoftRoleSlotAssignmentStrategy} with the given slot cost provider and cost threshold.
 * @param slotCostProvider the slot cost provider
 * @param costThreshold is a slot-cost limit, beyond which a slot is considered to be too expensive to consider occupying. */
public SoftRoleSlotAssignmentStrategy (SlotCostProvider<T> slotCostProvider, float costThreshold) {
    this.slotCostProvider = slotCostProvider;
    this.costThreshold = costThreshold;

    this.filledSlots = new BooleanArray();
}
项目:gdx-cclibs    文件:BooleanArraySerializer.java   
@Override
protected int numBits(BooleanArray bitSource) {
    return bitSource.size;
}
项目:gdx-cclibs    文件:BooleanArraySerializer.java   
@Override
protected boolean get(BooleanArray bitSource, int index) {
    return bitSource.get(index);
}
项目:gdx-cclibs    文件:BooleanArraySerializer.java   
@Override
protected BooleanArray createObject(int numBits) {
    BooleanArray array = new BooleanArray(numBits);
    array.setSize(numBits);
    return array;
}
项目:gdx-cclibs    文件:BooleanArraySerializer.java   
@Override
protected void set(BooleanArray bitDest, int index) {
    bitDest.set(index, true);
}
项目:gdx-cclibs    文件:BooleanArraySerializer.java   
@Override
public BooleanArray copy (Kryo kryo, BooleanArray original) {
    return new BooleanArray(original);
}