public Punter getPunter(String Name, Label MaximumBet, Label bet) { Punter p; switch (Name.ToLower()) { case "jaspreet": p = new Jaspreet(null, MaximumBet, 50, bet); break; case "raj": p = new Raj(null, MaximumBet, 50, bet); break; case "harman": p = new Harman(null, MaximumBet, 50, bet); break; default: p = null; break; } p.setPunterName(); return(p); }
public Punter getPunter(String Name, Label MaximumBet, Label bet) { Punter p; switch (Name.ToLower()) { case "iqbal": p = new Iqbal(null, MaximumBet, 50, bet); break; case "raj": p = new Raj(null, MaximumBet, 50, bet); break; case "sukhdeep": p = new Sukhdeep(null, MaximumBet, 50, bet); break; default: p = null; break; } p.setPunterName(); return(p); }