Beispiel #1
0
    public static ResolveScoreCommand Create(
        PlayerState player,
        CustomerCardState customer)
    {
        ResolveScoreCommand command = new ResolveScoreCommand();

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