예제 #1
0
    private void _replaceIngredientCards(PlayerHand hand)
    {
        ICommand command = ReplaceIngredientCards.Create(
            hand,
            matchState.ingredientDeck);

        _commandFactory.Execute(command);
    }
예제 #2
0
    public static ReplaceIngredientCards Create(
        PlayerHand hand,
        CardDeck ingredientDeck)
    {
        ReplaceIngredientCards command = new ReplaceIngredientCards();

        command._hand           = hand;
        command._ingredientDeck = ingredientDeck;
        return(command);
    }