本文整理汇总了Java中com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene类的典型用法代码示例。如果您正苦于以下问题:Java StartScene类的具体用法?Java StartScene怎么用?Java StartScene使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StartScene类属于com.shatteredpixel.shatteredpixeldungeon.scenes包,在下文中一共展示了StartScene类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initForRun
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //导入依赖的package包/类
public static void initForRun(){
float[] regionChances = baseRegionSecrets.clone();
if (StartScene.curClass == HeroClass.ROGUE){
for (int i = 0; i < regionChances.length; i++){
regionChances[i] += 0.6f;
}
}
for (int i = 0; i < regionSecretsThisRun.length; i++){
regionSecretsThisRun[i] = (int)regionChances[i];
if (Random.Float() < regionChances[i] % 1f){
regionSecretsThisRun[i]++;
}
}
runSecrets = new ArrayList<>(ALL_SECRETS);
Random.shuffle(runSecrets);
}
示例2: init
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //导入依赖的package包/类
public static void init() {
challenges = ShatteredPixelDungeon.challenges();
Generator.initArtifacts();
Actor.clear();
PathFinder.setMapSize( Level.WIDTH, Level.HEIGHT );
Scroll.initLabels();
Potion.initColors();
Wand.initWoods();
Ring.initGems();
Statistics.reset();
Journal.reset();
quickslot.reset();
depth = 0;
gold = 0;
for (limitedDrops a : limitedDrops.values())
a.count = 0;
dewVial = true;
transmutation = Random.IntRange( 6, 14 );
chapters = new HashSet<Integer>();
Ghost.Quest.reset();
Wandmaker.Quest.reset();
Blacksmith.Quest.reset();
Imp.Quest.reset();
Room.shuffleTypes();
hero = new Hero();
hero.live();
Badges.reset();
StartScene.curClass.initHero( hero );
}
示例3: init
import com.shatteredpixel.shatteredpixeldungeon.scenes.StartScene; //导入依赖的package包/类
public static void init() {
version = Game.versionCode;
challenges = ShatteredPixelDungeon.challenges();
seed = DungeonSeed.randomSeed();
Actor.clear();
Actor.resetNextID();
Random.seed( seed );
Scroll.initLabels();
Potion.initColors();
Ring.initGems();
SpecialRoom.initForRun();
SecretRoom.initForRun();
Random.seed();
Statistics.reset();
Notes.reset();
quickslot.reset();
QuickSlotButton.reset();
depth = 0;
gold = 0;
droppedItems = new SparseArray<ArrayList<Item>>();
for (LimitedDrops a : LimitedDrops.values())
a.count = 0;
chapters = new HashSet<Integer>();
Ghost.Quest.reset();
Wandmaker.Quest.reset();
Blacksmith.Quest.reset();
Imp.Quest.reset();
Generator.reset();
Generator.initArtifacts();
hero = new Hero();
hero.live();
Badges.reset();
StartScene.curClass.initHero( hero );
}