Search in sources :

Example 1 with HeroSubClass

use of com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass in project shattered-pixel-dungeon-gdx by 00-Evan.

the class TomeOfMastery method execute.

@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));
    }
}
Also used : WndChooseWay(com.shatteredpixel.shatteredpixeldungeon.windows.WndChooseWay) HeroSubClass(com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass)

Aggregations

HeroSubClass (com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroSubClass)1 WndChooseWay (com.shatteredpixel.shatteredpixeldungeon.windows.WndChooseWay)1