private void _createNewCustomer(int customerSlotId) { ICommand command = CreateActiveCustomerCommand.Create( playerGroup.activePlayer, customerSlotId, matchState.customerDeck, activeCustomerSet); _commandFactory.Execute(command); }
public static CreateActiveCustomerCommand Create( PlayerState activePlayer, int slotIndex, CardDeck customerDeck, ActiveCustomerSet customerSet ) { CreateActiveCustomerCommand command = new CreateActiveCustomerCommand(); command._activePlayer = activePlayer; command._customerDeck = customerDeck; command._slotIndex = slotIndex; command._customerSet = customerSet; return(command); }