本文整理匯總了Java中com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel類的典型用法代碼示例。如果您正苦於以下問題:Java CityBossLevel類的具體用法?Java CityBossLevel怎麽用?Java CityBossLevel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CityBossLevel類屬於com.shatteredpixel.shatteredpixeldungeon.levels包,在下文中一共展示了CityBossLevel類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: canTryToSummon
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
private boolean canTryToSummon() {
if (Undead.count < maxArmySize()) {
Char ch = Actor.findChar( CityBossLevel.pedestal( nextPedestal ) );
return ch == this || ch == null;
} else {
return false;
}
}
示例2: attack
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
public boolean attack( Char enemy ) {
if (canTryToSummon() && pos == CityBossLevel.pedestal( nextPedestal )) {
summon();
return true;
} else {
if (Actor.findChar( CityBossLevel.pedestal( nextPedestal ) ) == enemy) {
nextPedestal = !nextPedestal;
}
return super.attack(enemy);
}
}
示例3: canTryToSummon
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
private boolean canTryToSummon() {
if (Undead.count < maxArmySize()) {
Char ch = Actor.findChar( ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) );
return ch == this || ch == null;
} else {
return false;
}
}
示例4: attack
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
public boolean attack( Char enemy ) {
if (canTryToSummon() && pos == ((CityBossLevel)Dungeon.level).pedestal( nextPedestal )) {
summon();
return true;
} else {
if (Actor.findChar( ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) ) == enemy) {
nextPedestal = !nextPedestal;
}
return super.attack(enemy);
}
}
示例5: getCloser
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
protected boolean getCloser( int target ) {
return canTryToSummon() ?
super.getCloser( CityBossLevel.pedestal( nextPedestal ) ) :
super.getCloser( target );
}
示例6: canAttack
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
protected boolean canAttack( Char enemy ) {
return canTryToSummon() ?
pos == CityBossLevel.pedestal( nextPedestal ) :
Level.adjacent( pos, enemy.pos );
}
示例7: getCloser
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
protected boolean getCloser( int target ) {
return canTryToSummon() ?
super.getCloser( ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) ) :
super.getCloser( target );
}
示例8: canAttack
import com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel; //導入依賴的package包/類
@Override
protected boolean canAttack( Char enemy ) {
return canTryToSummon() ?
pos == ((CityBossLevel)Dungeon.level).pedestal( nextPedestal ) :
Dungeon.level.adjacent( pos, enemy.pos );
}