ProjectAscii-Art/org/example/Computadora.java

203 lines
6.0 KiB
Java

package org.example;
public class Computadora extends Lienzo{
public int x;
public int y;
public Computadora(int ancho, int alto, char lienzo [][]) {
super(ancho, alto, lienzo);
}
public void pintarComputadora1(char[][] lienzo){
this.setPen(1, 1, '.');
this.setPen(2, 1, '|');
this.setPen(3, 1, '|');
this.setPen(4, 1, '|');
this.setPen(5, 1, '|');
this.setPen(6, 1, '|');
this.setPen(1, 2, '-');
this.setPen(1, 3, '-');
this.setPen(1, 4, '.');
this.setPen(2, 4, '|');
this.setPen(3, 4, '|');
this.setPen(4, 4, '|');
this.setPen(5, 4, '|');
this.setPen(6, 4, '|');
this.setPen(6, 3, '_');
this.setPen(6, 2, '_');
this.setPen(2, 3, '_');
this.setPen(2, 2, '_');
this.setPen(3, 3, '.');
this.setPen(3, 2, '=');
this.setPen(4, 2, '-');
this.setPen(4, 3, '-');
this.setPen(6, 5, '~');
this.setPen(6, 6, '°');
this.setPen(5, 6, '|');
this.setPen(4, 6, '|');
this.setPen(3, 6, '|');
this.setPen(2, 6, '.');
this.setPen(6, 7, ')');
this.setPen(5, 7, '°');
this.setPen(4, 7, '|');
this.setPen(3, 7, '.');
this.setPen(2, 7, '-');
this.setPen(6, 8, '_');
this.setPen(5, 8, '-');
this.setPen(3, 8, '-');
this.setPen(2, 8, '-');
this.setPen(6, 9, '_');
this.setPen(5, 9, '-');
this.setPen(4, 9, 'K');
this.setPen(3, 9, '-');
this.setPen(2, 9, '-');
this.setPen(6, 10, '_');
this.setPen(5, 10, '-');
this.setPen(4, 10, 'C');
this.setPen(3, 10, '-');
this.setPen(2, 10, '-');
this.setPen(6, 11, '_');
this.setPen(5, 11, '-');
this.setPen(4, 11, 'K');
this.setPen(3, 11, '-');
this.setPen(2, 11, '-');
this.setPen(6, 12, '_');
this.setPen(5, 12, '-');
this.setPen(3, 12, '-');
this.setPen(2, 12, '-');
this.setPen(6, 13, '(');
this.setPen(5, 13, '°');
this.setPen(4, 13, '|');
this.setPen(3, 13, '.');
this.setPen(2, 13, '-');
this.setPen(6, 14, '°');
this.setPen(5, 14, '|');
this.setPen(4, 14, '|');
this.setPen(3, 14, '|');
this.setPen(2, 14, '.');
}
public void pintarComputadora2(char[][] lienzo){
for(int i = 0; i < 20; i ++){
this.setPen(12,i,'-');
}
this.setPen(11, 1, '/');
for(int i = 4; i < 16; i ++){
this.setPen(11,i,'*');
}
this.setPen(11, 18, '\\');
this.setPen(10, 3, '/');
for(int i = 5; i < 15; i ++){
this.setPen(10,i,'*');
}
this.setPen(10, 16, '\\');
this.setPen(9, 4, '_');
this.setPen(9, 5, '|');
this.setPen(9, 6, '_');
this.setPen(9, 7, '_');
this.setPen(9, 8, '|');
this.setPen(9, 9, '/');
this.setPen(9, 11, '\\');
this.setPen(9, 12, '|');
this.setPen(9, 13, '_');
this.setPen(9, 14, '|');
this.setPen(9, 15, '_');
for(int i = 16; i < 29; i ++){
this.setPen(9,i,'.');
}
for(int i = 8; i > 1; i --){
this.setPen(i, 2, '|');
}
for(int i = 3; i < 8; i++){
this.setPen(8, i, '_');
}
this.setPen(8,8,'|');
this.setPen(8, 9, '\\');
this.setPen(8, 10, '_');
this.setPen(8, 11, '/');
this.setPen(8,12 , '|');
for(int i = 13; i < 18; i++){
this.setPen(8, i, '_');
}
for(int i = 8; i > 1; i --){
this.setPen(i, 18, '|');
}
for(int i = 3; i < 18; i++){
this.setPen(1, i, '_');
}
for(int i = 7; i > 2; i--){
this.setPen(i, 4, '|');
}
for(int i = 5; i<16; i++){
this.setPen(2, i, '_');
}
for(int i = 7; i > 2; i--){
this.setPen(i, 16, '|');
}
this.setPen(7, 5, '_');
this.setPen(7, 6, '_');
this.setPen(7, 7, '_');
this.setPen(7, 13, '_');
this.setPen(7, 14, '_');
this.setPen(7, 15, '_');
this.setPen(6, 8, '\\');
this.setPen(6, 9, '_');
this.setPen(6, 10, '_');
this.setPen(6, 11, '_');
this.setPen(6, 12, '/');
this.setPen(5, 10, '-');
this.setPen(4, 8, '0');
this.setPen(4, 12, '0');
this.setPen(9, 29, '*');
this.setPen(8, 27, '.');
this.setPen(8, 28, '*');
this.setPen(8, 29, '*');
this.setPen(8, 30, '*');
this.setPen(8, 28, '*');
this.setPen(8, 31, '.');
this.setPen(7, 26, '.');
this.setPen(7, 27, '*');
this.setPen(7, 28, '*');
this.setPen(7, 29, '*');
this.setPen(7, 30, '*');
this.setPen(7, 31, '*');
this.setPen(7, 32, '.');
this.setPen(6, 25, '.');
for(int i = 26; i<33; i++){
this.setPen(6, i, '*');
}
this.setPen(6, 33, '.');
this.setPen(5, 24, '.');
for(int i = 25; i<34; i++){
this.setPen(5, i, '*');
}
this.setPen(5, 34, '.');
this.setPen(4, 23, '.');
for(int i = 24; i<29; i++){
this.setPen(4, i, '*');
}
this.setPen(4, 29, '.');
for(int i = 30; i<35; i++){
this.setPen(4, i, '*');
}
this.setPen(4, 35, '.');
this.setPen(3, 23, '.');
for(int i = 24; i<28; i++){
this.setPen(3, i, '*');
}
this.setPen(3, 28, '.');
this.setPen(3, 30, '.');
for(int i = 31; i<35; i++){
this.setPen(3, i, '*');
}
this.setPen(3, 35, '.');
this.setPen(2, 24, '.');
this.setPen(2, 25, '-');
this.setPen(2, 26, '.');
this.setPen(2, 32, '.');
this.setPen(2, 33, '-');
this.setPen(2, 34 , '.');
}
public void pintarComputadora3(char[][] lienzo){}
}