• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java CityBossLevel类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.watabou.pixeldungeon.levels.CityBossLevel的典型用法代码示例。如果您正苦于以下问题:Java CityBossLevel类的具体用法?Java CityBossLevel怎么用?Java CityBossLevel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

CityBossLevel类属于com.watabou.pixeldungeon.levels包,在下文中一共展示了CityBossLevel类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: canTryToSummon

点赞 2

import com.watabou.pixeldungeon.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;
	}
}
 

开发者ID:kurtyu,
项目名称:PixelDungeonTC,
代码行数:9,
代码来源:King.java

示例2: attack

点赞 2

import com.watabou.pixeldungeon.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);
	}
}
 

开发者ID:kurtyu,
项目名称:PixelDungeonTC,
代码行数:13,
代码来源:King.java

示例3: getCloser

点赞 2

import com.watabou.pixeldungeon.levels.CityBossLevel; //导入依赖的package包/类
@Override
protected boolean getCloser( int target ) {
	return canTryToSummon() ? 
		super.getCloser( CityBossLevel.pedestal( nextPedestal ) ) : 
		super.getCloser( target );
}
 

开发者ID:kurtyu,
项目名称:PixelDungeonTC,
代码行数:7,
代码来源:King.java

示例4: canAttack

点赞 2

import com.watabou.pixeldungeon.levels.CityBossLevel; //导入依赖的package包/类
@Override
protected boolean canAttack( Char enemy ) {
	return canTryToSummon() ? 
		pos == CityBossLevel.pedestal( nextPedestal ) : 
		Level.adjacent( pos, enemy.pos );
}
 

开发者ID:kurtyu,
项目名称:PixelDungeonTC,
代码行数:7,
代码来源:King.java

示例5: initLevelsMap

点赞 2

import com.watabou.pixeldungeon.levels.CityBossLevel; //导入依赖的package包/类
private static void initLevelsMap() {
	if (BuildConfig.DEBUG) {
		mDungeonMap = JsonHelper.readJsonFromAsset("levelsDesc/Dungeon_debug.json");
	} else {
		mDungeonMap = JsonHelper.readJsonFromAsset("levelsDesc/Dungeon.json");
	}

	try {
		mLevels = mDungeonMap.getJSONObject("Levels");
		mGraph = mDungeonMap.getJSONObject("Graph");
	} catch (JSONException e) {
		throw new TrackedRuntimeException(e);
	}

	mLevelKindList = new HashMap<>();

	registerLevelClass(SewerLevel.class);
	registerLevelClass(SewerBossLevel.class);
	registerLevelClass(SpiderLevel.class);
	registerLevelClass(PrisonLevel.class);
	registerLevelClass(PrisonBossLevel.class);
	registerLevelClass(CavesLevel.class);
	registerLevelClass(CavesBossLevel.class);
	registerLevelClass(CityLevel.class);
	registerLevelClass(CityBossLevel.class);
	registerLevelClass(LastShopLevel.class);
	registerLevelClass(HallsLevel.class);
	registerLevelClass(HallsBossLevel.class);
	registerLevelClass(LastLevel.class);
	registerLevelClass(DeadEndLevel.class);

	registerLevelClass(PredesignedLevel.class);
	registerLevelClass(GutsLevel.class);
	registerLevelClass(ShadowLordLevel.class);
	registerLevelClass(FakeLastLevel.class);

	registerLevelClass(NecroLevel.class);
	registerLevelClass(NecroBossLevel.class);

	registerLevelClass(IceCavesLevel.class);
	registerLevelClass(IceCavesBossLevel.class);
	registerLevelClass(RandomLevel.class);
	registerLevelClass(TownShopLevel.class);

}
 

开发者ID:NYRDS,
项目名称:pixel-dungeon-remix,
代码行数:46,
代码来源:DungeonGenerator.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)