Ejemplo n.º 1
0
        /*public void NovaMensura(string genus){
         *                          switch(genus){
         *                                  case "human":
         *                                          Human.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  case "orc":
         *                                          Orc.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  case "vampire":
         *                                          Vampire.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  case "dwarf":
         *                                          Dwarf.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  case "elf":
         *                                          Elf.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  case "werewolf":
         *                                          Werewolf.NovaMensura(Ego.CorpusAptus);
         *                                          break;
         *                                  default:
         *                                          break;
         *                  }
         *          }*/

        public void Auto(string genus, string nomen)
        {
            genus = genus.ToLower();
            switch (genus)
            {
            case "human":
                Human.Auto(nomen);
                break;

            case "orc":
                Orc.Auto(nomen);
                break;

            case "vampire":
                Vampire.Auto(nomen);
                break;

            case "dwarf":
                Dwarf.Auto(nomen);
                break;

            case "elf":
                Elf.Auto(nomen);
                break;

            case "werewolf":
                Werewolf.Auto(nomen);
                break;

            case "quadrupod":
                Quadrupod.Auto(nomen);
                break;

            default:
                Human.Auto(nomen);
                break;
            }
        }