public static ResolveScoreCommand Create( PlayerState player, CustomerCardState customer) { ResolveScoreCommand command = new ResolveScoreCommand(); command._player = player; command._customer = customer; return(command); }
private bool _resolveCustomerCards( CustomerCardState customer, PlayerState player) { if (customer.isComplete) { ICommand resolve = ResolveScoreCommand.Create(player, customer); _commandFactory.Execute(resolve); return(true); } return(false); }