本文整理汇总了Java中com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing类的典型用法代码示例。如果您正苦于以下问题:Java Freezing类的具体用法?Java Freezing怎么用?Java Freezing使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Freezing类属于com.shatteredpixel.shatteredpixeldungeon.actors.blobs包,在下文中一共展示了Freezing类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: shatter
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
protected void shatter( int cell ) {
PathFinder.buildDistanceMap( cell, BArray.not( Level.losBlocking, null ), DISTANCE );
Fire fire = (Fire)Dungeon.level.blobs.get( Fire.class );
for (int i=0; i < Level.LENGTH; i++) {
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
Freezing.affect( i, fire );
}
}
splash( cell );
Sample.INSTANCE.play( Assets.SND_SHATTER );
setKnown();
}
示例2: activate
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
public void activate( Char ch ) {
super.activate( ch );
PathFinder.buildDistanceMap( pos, BArray.not( Level.losBlocking, null ), 1 );
Fire fire = (Fire)Dungeon.level.blobs.get( Fire.class );
for (int i=0; i < Level.LENGTH; i++) {
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
Freezing.affect( i, fire );
}
}
}
示例3: activate
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
public void activate() {
if (Dungeon.level.heroFOV[ pos ]){
Splash.at( pos, 0xFFB2D6FF, 5);
Sample.INSTANCE.play( Assets.SND_SHATTER );
}
for( int i : PathFinder.NEIGHBOURS9) {
if (!Dungeon.level.solid[pos + i]) {
GameScene.add(Blob.seed(pos + i, 10, Freezing.class));
}
}
}
示例4: activate
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
public void activate() {
if (Dungeon.level.heroFOV[ pos ]){
Splash.at( pos, 0xFFB2D6FF, 5);
Sample.INSTANCE.play( Assets.SND_SHATTER );
}
PathFinder.buildDistanceMap( pos, BArray.not( Dungeon.level.solid, null ), 2 );
for (int i = 0; i < PathFinder.distance.length; i++) {
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
GameScene.add(Blob.seed(i, 20, Freezing.class));
}
}
}
示例5: activate
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
public void activate() {
PathFinder.buildDistanceMap( pos, BArray.not( Dungeon.level.losBlocking, null ), 1 );
Fire fire = (Fire)Dungeon.level.blobs.get( Fire.class );
for (int i=0; i < PathFinder.distance.length; i++) {
if (PathFinder.distance[i] < Integer.MAX_VALUE) {
Freezing.affect( i, fire );
}
}
}
示例6: shatter
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Freezing; //导入依赖的package包/类
@Override
public void shatter( int cell ) {
if (Dungeon.level.heroFOV[cell]) {
setKnown();
splash( cell );
Sample.INSTANCE.play( Assets.SND_SHATTER );
}
for (int offset : PathFinder.NEIGHBOURS9){
if (!Dungeon.level.solid[cell+offset]) {
GameScene.add(Blob.seed(cell + offset, 10, Freezing.class));
}
}
}