Exemplo n.º 1
0
    public void GenerateApartments()
    {
        MapData = new int[ApartmentWidth * NumApartments, ApartmentHeight + 4];

        for (int i = 0; i < NumApartments; i++)
        {
            Apartment a = new Apartment(ApartmentWidth, ApartmentHeight, i * ApartmentWidth, 0);
            a.SetSeed(Rng);
            MapData = a.CreateApartment(MapData);
            Apartments.Add(a);
        }
    }