public Piso(int superficie, PuertaColor color) { for (int i = 0; i < 3; i++) { puerta[i] = new Puerta(color); } this.superficie = superficie; }
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); } }
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); } }
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); } }
public Puerta(int ancho, int alto, PuertaColor color) : base(ancho, alto) { this.color = color; }
public Puerta(PuertaColor color) : base(80, 215) { this.color = color; }