示例#1
0
        internal PlayingState(PlayingContext context)
        {
            mContext = context;

            Game game = context.Game;

            for (int i = 0; i < HandCount; i++)
                mHands[i] = new HandState(game.GetHand(i));

            mActiveIndex = game.ActiveHand.Index;
            mDiscards = BitwiseCardHelper.CardCollectionToBits(game.PlayingContext.Discards);
            mLeadingSuit = context.InitialSuit;
        }