本文整理了Java中com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog
类的一些代码示例,展示了Yog
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yog
类的具体详情如下:
包路径:com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog
类名称:Yog
暂无
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon
public void spawnFists() {
RottingFist fist1 = new RottingFist();
BurningFist fist2 = new BurningFist();
do {
fist1.pos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
fist2.pos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
} while (!Dungeon.level.passable[fist1.pos] || !Dungeon.level.passable[fist2.pos] || fist1.pos == fist2.pos);
GameScene.add( fist1 );
GameScene.add( fist2 );
notice();
}
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon
@Override
public void notice() {
super.notice();
BossHealthBar.assignBoss(this);
yell( Messages.get(this, "notice") );
}
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon
Yog boss = new Yog();
do {
boss.pos = Random.Int( length() );
heroFOV[boss.pos]);
GameScene.add( boss );
boss.spawnFists();
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon-gdx
Yog boss = new Yog();
do {
boss.pos = Random.Int( length() );
heroFOV[boss.pos]);
GameScene.add( boss );
boss.spawnFists();
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon-gdx
@Override
public void notice() {
super.notice();
BossHealthBar.assignBoss(this);
yell( Messages.get(this, "notice") );
}
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon-gdx
public void spawnFists() {
RottingFist fist1 = new RottingFist();
BurningFist fist2 = new BurningFist();
do {
fist1.pos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
fist2.pos = pos + PathFinder.NEIGHBOURS8[Random.Int( 8 )];
} while (!Dungeon.level.passable[fist1.pos] || !Dungeon.level.passable[fist2.pos] || fist1.pos == fist2.pos);
GameScene.add( fist1 );
GameScene.add( fist2 );
notice();
}
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon-gdx
@SuppressWarnings("unchecked")
@Override
public void die( Object cause ) {
for (Mob mob : (Iterable<Mob>)Dungeon.level.mobs.clone()) {
if (mob instanceof BurningFist || mob instanceof RottingFist) {
mob.die( cause );
}
}
GameScene.bossSlain();
Dungeon.level.drop( new SkeletonKey( Dungeon.depth ), pos ).sprite.drop();
super.die( cause );
yell( Messages.get(this, "defeated") );
}
代码示例来源:origin: 00-Evan/shattered-pixel-dungeon
@SuppressWarnings("unchecked")
@Override
public void die( Object cause ) {
for (Mob mob : (Iterable<Mob>)Dungeon.level.mobs.clone()) {
if (mob instanceof BurningFist || mob instanceof RottingFist) {
mob.die( cause );
}
}
GameScene.bossSlain();
Dungeon.level.drop( new SkeletonKey( Dungeon.depth ), pos ).sprite.drop();
super.die( cause );
yell( Messages.get(this, "defeated") );
}
内容来源于网络,如有侵权,请联系作者删除!