Beispiel #1
0
    private void _createNewCustomer(int customerSlotId)
    {
        ICommand command = CreateActiveCustomerCommand.Create(
            playerGroup.activePlayer,
            customerSlotId,
            matchState.customerDeck,
            activeCustomerSet);

        _commandFactory.Execute(command);
    }
Beispiel #2
0
    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);
    }