170171172173174175176177178179180181182183184185186187188189190191192193194195196197
break; case 2: race1 = new Undead(); break; case 3: race1 = new Orc(); break; default: System.err.println("Error choosing race from Player 1"); System.exit(1); } switch (teamJ2) { case 0: race2 = new Elf(); break; case 1: race2 = new Human(); break; case 2: race2 = new Undead(); break; case 3: race2 = new Orc(); break; default: System.err.println("Error choosing race from Player 2"); System.exit(1); }