public void Wicket(string method) { OnStrike.IsOut = true; OnStrike.MethodOut = method; Bowler.GetWicket(); SetBatsmen(); Batting.CalcWickets(); }
public void Wicket(string method, Player player) { player.IsOut = true; player.MethodOut = method; if (method != "Run out") { Bowler.GetWicket(); } SetBatsmen(); Batting.CalcWickets(); }