Exemplo n.º 1
0
        public Piso(int superficie, PuertaColor color)
        {
            for (int i = 0; i < 3; i++)
            {
                puerta[i] = new Puerta(color);
            }

            this.superficie = superficie;
        }
Exemplo n.º 2
0
        public Puertas(Tamanyo[] tamanyos, PuertaColor color)
        {
            this.Length = tamanyos.Length;

            puerta = new Puerta[tamanyos.Length];

            for (int i = 0; i < tamanyos.Length; i++)
            {
                puerta[i] = new Puerta(tamanyos[i].ancho, tamanyos[i].alto, color);
            }
        }
Exemplo n.º 3
0
        public Puertas(int cantidad, PuertaColor color)
        {
            this.Length = cantidad;

            puerta = new Puerta[cantidad];

            for (int i = 0; i < cantidad; i++)
            {
                puerta[i] = new Puerta(color);
            }
        }
Exemplo n.º 4
0
        public Piso(int superficie, Tamanyo[] tamanyo, PuertaColor color, Tamanyo[] tamanyo_ventanas, VentanaCalidad calidad)
        {
            //puertas = new Puertas(tamanyos);

            //this.superficie = superficie;

            this.superficie = superficie;

            puerta = new Puerta[tamanyo.Length];

            ventana = new Ventana[tamanyo_ventanas.Length];

            for (int i = 0; i < tamanyo.Length; i++)
            {
                puerta[i] = new Puerta(tamanyo[i].ancho, tamanyo[i].alto, color);
            }

            for (int i = 0; i < tamanyo_ventanas.Length; i++)
            {
                ventana[i] = new Ventana(tamanyo_ventanas[i].ancho, tamanyo_ventanas[i].alto, calidad);
            }
        }
Exemplo n.º 5
0
 public Puerta(int ancho, int alto, PuertaColor color) : base(ancho, alto)
 {
     this.color = color;
 }
Exemplo n.º 6
0
 public Puerta(PuertaColor color) : base(80, 215)
 {
     this.color = color;
 }