本文整理汇总了Java中com.shatteredpixel.shatteredpixeldungeon.windows.WndChooseWay类的典型用法代码示例。如果您正苦于以下问题:Java WndChooseWay类的具体用法?Java WndChooseWay怎么用?Java WndChooseWay使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WndChooseWay类属于com.shatteredpixel.shatteredpixeldungeon.windows包,在下文中一共展示了WndChooseWay类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import com.shatteredpixel.shatteredpixeldungeon.windows.WndChooseWay; //导入依赖的package包/类
@Override
public void execute( Hero hero, String action ) {
if (action.equals( AC_READ )) {
if (hero.buff( Blindness.class ) != null) {
GLog.w( TXT_BLINDED );
return;
}
curUser = hero;
HeroSubClass way1 = null;
HeroSubClass way2 = null;
switch (hero.heroClass) {
case WARRIOR:
way1 = HeroSubClass.GLADIATOR;
way2 = HeroSubClass.BERSERKER;
break;
case MAGE:
way1 = HeroSubClass.BATTLEMAGE;
way2 = HeroSubClass.WARLOCK;
break;
case ROGUE:
way1 = HeroSubClass.FREERUNNER;
way2 = HeroSubClass.ASSASSIN;
break;
case HUNTRESS:
way1 = HeroSubClass.SNIPER;
way2 = HeroSubClass.WARDEN;
break;
}
GameScene.show( new WndChooseWay( this, way1, way2 ) );
} else {
super.execute( hero, action );
}
}
示例2: execute
import com.shatteredpixel.shatteredpixeldungeon.windows.WndChooseWay; //导入依赖的package包/类
@Override
public void execute( Hero hero, String action ) {
super.execute( hero, action );
if (action.equals( AC_READ )) {
curUser = hero;
HeroSubClass way1 = null;
HeroSubClass way2 = null;
switch (hero.heroClass) {
case WARRIOR:
way1 = HeroSubClass.GLADIATOR;
way2 = HeroSubClass.BERSERKER;
break;
case MAGE:
way1 = HeroSubClass.BATTLEMAGE;
way2 = HeroSubClass.WARLOCK;
break;
case ROGUE:
way1 = HeroSubClass.FREERUNNER;
way2 = HeroSubClass.ASSASSIN;
break;
case HUNTRESS:
way1 = HeroSubClass.SNIPER;
way2 = HeroSubClass.WARDEN;
break;
}
GameScene.show( new WndChooseWay( this, way1, way2 ) );
}
}