Exemplo n.º 1
0
    private DungeonStruct SetDungeonSize(int floorNumber)
    {
        LevelGenerator mapGenerator  = new LevelGenerator(100, 50);
        int            rowAmmount    = 0;
        int            columnAmmount = 0;

        switch (floorNumber)
        {
        case 1:
            rowAmmount    = 35;
            columnAmmount = 70;
            return(mapGenerator.CreateDungeon(columnAmmount, rowAmmount, 12));

        case 2:
            rowAmmount    = 50;
            columnAmmount = 100;
            return(mapGenerator.CreateDungeon(columnAmmount, rowAmmount, 18));

        case 3:
            rowAmmount    = 70;
            columnAmmount = 120;
            return(mapGenerator.CreateDungeon(columnAmmount, rowAmmount, 24));

        case 4:
            rowAmmount    = 80;
            columnAmmount = 100;
            return(mapGenerator.CreateDungeon(columnAmmount, rowAmmount, 30));
        }
        rowAmmount    = 80;
        columnAmmount = 100;
        return(mapGenerator.CreateDungeon(columnAmmount, rowAmmount, 20));;
    }