Package cards

Examples of cards.Features


  }
 
  private List<Features> setDifQuestions(int numRasgos){
    List<Features> list = new ArrayList<Features>();
    for(int i=1;i<=numRasgos;i++){
      Features a = makeQuestion();
      list.add(a);
    }
    return list;
  }
View Full Code Here


  }

  private Features makeQuestion(){
    int rasgo;
    int tipoRasgo;
    Features a=null;
    System.out.print("\n\tRasgo: ");
    System.out.print("\n\t1:Orden");
    System.out.print("\n\t2:Categoria");
    System.out.print("\n\t3:Cabeza");
    System.out.print("\n\t4:Cuerpo");
    System.out.print("\n\t5:Pelo cara");
    System.out.print("\n\tOPCION: ");
    tipoRasgo=validarEntrada(1,5);
    switch(tipoRasgo){
    case 1:{
      System.out.print("\n\t1:TEMPLARIO;2:FRANCISCANO;3:BENEDICTINO");
      System.out.print("\n\tOPCION: ");
      rasgo=validarEntrada(1,3);
      Orden[] values=Orden.values();
      a = values[rasgo-1];
    }
    break;
    case 2:{
      System.out.print("\n\t1:PADRE;2:HERMANO;3:NOVICIO");
      System.out.print("\n\tOPCION: ");
      rasgo=validarEntrada(1,3);
      Titulo[] values=Titulo.values();
      a= values[rasgo-1];
    }
    break;
    case 3:{
      System.out.print("\n\t1:CAPUCHA;2:CALVO");
      System.out.print("\n\tOPCION: ");
      rasgo=validarEntrada(1,2);
      Cabeza[] values=Cabeza.values();
      a= values[rasgo-1];
    }
    break;
    case 4:{
      System.out.print("\n\t1:DELGADO;2:GORDO");
      System.out.print("\n\tOPCION: ");
      rasgo=validarEntrada(1,2);
      Cuerpo[] values=Cuerpo.values();
      a= values[rasgo-1];
    }
    break;
    case 5:{
      System.out.print("\n\t1:BARBA;2:SIN BARBA");
      System.out.print("\n\tOPCION: ");
      rasgo=validarEntrada(1,2);
      VelloFacial[] values=VelloFacial.values();
      a= values[rasgo-1];
    }
    }//END SWITCH
    System.out.print("\n\trasgo: "+a.toString());
    return a;
  }
View Full Code Here

TOP

Related Classes of cards.Features

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.