Dominion.PlayerState.EnterPhase C# (CSharp) Method

EnterPhase() private method

private EnterPhase ( PlayPhase phase ) : void
phase PlayPhase
return void
        internal void EnterPhase(PlayPhase phase)
        {
            this.gameLog.EndPhase(this);
            this.playPhase = phase;
            this.gameLog.BeginPhase(this);
        }

Usage Example

Beispiel #1
0
        private void DoCleanupPhase(PlayerState currentPlayer)
        {
            currentPlayer.EnterPhase(PlayPhase.Cleanup);

            if (currentPlayer.ownsCardThatHasSpecializedCleanupAtStartOfCleanup)
            {
                currentPlayer.cardsInPlayAtBeginningOfCleanupPhase.CopyFrom(currentPlayer.cardsPlayed);
                foreach (Card cardInPlay in currentPlayer.cardsInPlayAtBeginningOfCleanupPhase)
                {
                    this.cardContextStack.PushCardContext(currentPlayer, cardInPlay, CardContextReason.CardBeingCleanedUp);
                    cardInPlay.DoSpecializedCleanupAtStartOfCleanup(currentPlayer, this);
                    this.cardContextStack.Pop();
                }
                currentPlayer.cardsInPlayAtBeginningOfCleanupPhase.Clear();
            }

            currentPlayer.CleanupCardsToDiscard(this);
        }
All Usage Examples Of Dominion.PlayerState::EnterPhase
PlayerState