コード例 #1
0
        public static DeckRegularDict <FluxxCardInformation> CardsForTaxation(FluxxGameContainer gameContainer)
        {
            int extras  = gameContainer.IncreaseAmount();
            int howMany = extras + 1;

            return(gameContainer.SingleInfo !.MainHandList.GetRandomList(true, howMany).ToRegularDeckDict()); //i think you do need to remove previous.
        }
コード例 #2
0
        public static DeckRegularDict <FluxxCardInformation> CardsToDiscardFromHand(FluxxGameContainer gameContainer, int howMany)
        {
            if (howMany <= 0)
            {
                throw new BasicBlankException("Must discard at least one card from hand");
            }

            return(gameContainer.SingleInfo !.MainHandList.GetRandomList(false, howMany).ToRegularDeckDict());
        }