com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog类的一些代码示例,展示了Yog类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yog类的具体详情如下:
包路径:com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Yog
类名称: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") );
}

相关文章