コード例 #1
0
ファイル: Player.cs プロジェクト: JonnyMcFire/EpixCopy
        public void RemoveFromDeck(Entity entity, int turn)
        {
            var revealed = RevealedCards.FirstOrDefault(r => r.Entity == entity);

            if (revealed != null)
            {
                RevealedCards.Remove(revealed);
            }
            var ce = MoveCardEntity(entity, Deck, Removed, turn);

            Log("RemoveFromDeck", ce);
        }
コード例 #2
0
        public void RemoveFromDeck(Entity entity, int turn)
        {
            var revealed = RevealedCards.FirstOrDefault(r => r.Entity == entity);

            if (revealed != null)
            {
                RevealedCards.Remove(revealed);
            }
            var ce = MoveCardEntity(entity, Deck, Removed, turn);

            UpdateRevealedEntity(ce, turn, true);
            VerifyCardMatchesDeck(ce);
            Log(ce);
        }