Search in sources :

Example 1 with PrisonLevel

use of com.shatteredpixel.shatteredpixeldungeon.levels.PrisonLevel in project shattered-pixel-dungeon-gdx by 00-Evan.

the class Dungeon method newLevel.

public static Level newLevel() {
    Dungeon.level = null;
    Actor.clear();
    depth++;
    if (depth > Statistics.deepestFloor) {
        Statistics.deepestFloor = depth;
        if (Statistics.qualifiedForNoKilling) {
            Statistics.completedWithNoKilling = true;
        } else {
            Statistics.completedWithNoKilling = false;
        }
    }
    Level level;
    switch(depth) {
        case 1:
        case 2:
        case 3:
        case 4:
            level = new SewerLevel();
            break;
        case 5:
            level = new SewerBossLevel();
            break;
        case 6:
        case 7:
        case 8:
        case 9:
            level = new PrisonLevel();
            break;
        case 10:
            level = new PrisonBossLevel();
            break;
        case 11:
        case 12:
        case 13:
        case 14:
            level = new CavesLevel();
            break;
        case 15:
            level = new CavesBossLevel();
            break;
        case 16:
        case 17:
        case 18:
        case 19:
            level = new CityLevel();
            break;
        case 20:
            level = new CityBossLevel();
            break;
        case 21:
            level = new LastShopLevel();
            break;
        case 22:
        case 23:
        case 24:
            level = new HallsLevel();
            break;
        case 25:
            level = new HallsBossLevel();
            break;
        case 26:
            level = new LastLevel();
            break;
        default:
            level = new DeadEndLevel();
            Statistics.deepestFloor--;
    }
    level.create();
    Statistics.qualifiedForNoKilling = !bossLevel();
    return level;
}
Also used : CityBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel) SewerLevel(com.shatteredpixel.shatteredpixeldungeon.levels.SewerLevel) SewerBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.SewerBossLevel) CityLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel) CavesBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel) PrisonBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel) LastShopLevel(com.shatteredpixel.shatteredpixeldungeon.levels.LastShopLevel) LastLevel(com.shatteredpixel.shatteredpixeldungeon.levels.LastLevel) PrisonLevel(com.shatteredpixel.shatteredpixeldungeon.levels.PrisonLevel) DeadEndLevel(com.shatteredpixel.shatteredpixeldungeon.levels.DeadEndLevel) SewerBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.SewerBossLevel) SewerLevel(com.shatteredpixel.shatteredpixeldungeon.levels.SewerLevel) PrisonBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel) CityBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel) CavesLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CavesLevel) DeadEndLevel(com.shatteredpixel.shatteredpixeldungeon.levels.DeadEndLevel) LastLevel(com.shatteredpixel.shatteredpixeldungeon.levels.LastLevel) CityLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel) LastShopLevel(com.shatteredpixel.shatteredpixeldungeon.levels.LastShopLevel) PrisonLevel(com.shatteredpixel.shatteredpixeldungeon.levels.PrisonLevel) HallsBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel) CavesBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel) HallsLevel(com.shatteredpixel.shatteredpixeldungeon.levels.HallsLevel) Level(com.shatteredpixel.shatteredpixeldungeon.levels.Level) HallsLevel(com.shatteredpixel.shatteredpixeldungeon.levels.HallsLevel) CavesLevel(com.shatteredpixel.shatteredpixeldungeon.levels.CavesLevel) HallsBossLevel(com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel)

Aggregations

CavesBossLevel (com.shatteredpixel.shatteredpixeldungeon.levels.CavesBossLevel)1 CavesLevel (com.shatteredpixel.shatteredpixeldungeon.levels.CavesLevel)1 CityBossLevel (com.shatteredpixel.shatteredpixeldungeon.levels.CityBossLevel)1 CityLevel (com.shatteredpixel.shatteredpixeldungeon.levels.CityLevel)1 DeadEndLevel (com.shatteredpixel.shatteredpixeldungeon.levels.DeadEndLevel)1 HallsBossLevel (com.shatteredpixel.shatteredpixeldungeon.levels.HallsBossLevel)1 HallsLevel (com.shatteredpixel.shatteredpixeldungeon.levels.HallsLevel)1 LastLevel (com.shatteredpixel.shatteredpixeldungeon.levels.LastLevel)1 LastShopLevel (com.shatteredpixel.shatteredpixeldungeon.levels.LastShopLevel)1 Level (com.shatteredpixel.shatteredpixeldungeon.levels.Level)1 PrisonBossLevel (com.shatteredpixel.shatteredpixeldungeon.levels.PrisonBossLevel)1 PrisonLevel (com.shatteredpixel.shatteredpixeldungeon.levels.PrisonLevel)1 SewerBossLevel (com.shatteredpixel.shatteredpixeldungeon.levels.SewerBossLevel)1 SewerLevel (com.shatteredpixel.shatteredpixeldungeon.levels.SewerLevel)1