• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java BooleanArray类的典型用法和代码示例

java 8次浏览

本文整理汇总了Java中com.badlogic.gdx.utils.BooleanArray的典型用法代码示例。如果您正苦于以下问题:Java BooleanArray类的具体用法?Java BooleanArray怎么用?Java BooleanArray使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

BooleanArray类属于com.badlogic.gdx.utils包,在下文中一共展示了BooleanArray类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: SoftRoleSlotAssignmentStrategy

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
/** 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();
}
 

开发者ID:Mignet,
项目名称:Inspiration,
代码行数:10,
代码来源:SoftRoleSlotAssignmentStrategy.java

示例2: numBits

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
@Override
protected int numBits(BooleanArray bitSource) {
    return bitSource.size;
}
 

开发者ID:CypherCove,
项目名称:gdx-cclibs,
代码行数:5,
代码来源:BooleanArraySerializer.java

示例3: get

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
@Override
protected boolean get(BooleanArray bitSource, int index) {
    return bitSource.get(index);
}
 

开发者ID:CypherCove,
项目名称:gdx-cclibs,
代码行数:5,
代码来源:BooleanArraySerializer.java

示例4: createObject

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
@Override
protected BooleanArray createObject(int numBits) {
    BooleanArray array = new BooleanArray(numBits);
    array.setSize(numBits);
    return array;
}
 

开发者ID:CypherCove,
项目名称:gdx-cclibs,
代码行数:7,
代码来源:BooleanArraySerializer.java

示例5: set

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
@Override
protected void set(BooleanArray bitDest, int index) {
    bitDest.set(index, true);
}
 

开发者ID:CypherCove,
项目名称:gdx-cclibs,
代码行数:5,
代码来源:BooleanArraySerializer.java

示例6: copy

点赞 2

import com.badlogic.gdx.utils.BooleanArray; //导入依赖的package包/类
@Override
public BooleanArray copy (Kryo kryo, BooleanArray original) {
    return new BooleanArray(original);
}
 

开发者ID:CypherCove,
项目名称:gdx-cclibs,
代码行数:5,
代码来源:BooleanArraySerializer.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)