本文整理汇总了Java中com.artemis.Entity.isActive方法的典型用法代码示例。如果您正苦于以下问题:Java Entity.isActive方法的具体用法?Java Entity.isActive怎么用?Java Entity.isActive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.artemis.Entity
的用法示例。
在下文中一共展示了Entity.isActive方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: process
import com.artemis.Entity; //导入方法依赖的package包/类
@Override
protected void process(Entity factory, Entity ingredient) {
final Crusher crusher = mCrusher.get(factory);
if (crusherActive(factory)) {
if ( !crusher.down )
{
final Sprinkle sprinkle = mSprinkle.create(factory);
sprinkle.liquid = ShowerLiquid.DUST;
sprinkle.duration = 0.125f;
crusher.down = true;
}
if (ingredient.isActive() && collisionSystem.overlaps(factory, ingredient)) {
act(factory, ingredient);
}
} else crusher.down =false;
}
示例2: process
import com.artemis.Entity; //导入方法依赖的package包/类
@Override
protected void process(Entity gouger, Entity ingredient) {
if (ingredient.isActive() && collisionSystem.overlaps(gouger, ingredient)) {
act(gouger, ingredient);
final Sprinkle sprinkle = mSprinkle.create(gouger);
sprinkle.liquid = ShowerLiquid.STEAM;
sprinkle.duration = 0.3f;
}
}
示例3: process
import com.artemis.Entity; //导入方法依赖的package包/类
@Override
protected void process(Entity shower, Entity ingredient) {
if (showerActive(shower)) {
mSprinkle.create(shower).liquid = mShower.get(shower).liquid;
if (ingredient.isActive() && collisionSystem.overlaps(shower, ingredient)) {
act(shower, ingredient);
}
}
}
示例4: process
import com.artemis.Entity; //导入方法依赖的package包/类
@Override
protected void process(Entity factory, Entity ingredient) {
if ( ingredient.isActive() && collisionSystem.overlaps(factory,ingredient))
{
pickup(factory, ingredient);
}
}