예제 #1
0
        private void DrawCard(CardDeck cardDeck)
        {
            Card newCard = cardDeck.Draw();

            Reporter.AddCardAction(newCard.Action.ToString());

            switch (newCard.Action)
            {
            case CardAction.MoveRelative:
                _gameboard.MoveToRelativeTarget(newCard.Parameter);
                break;

            case CardAction.NextSuperpower:
                _gameboard.MoveToNextSuperpower();
                break;

            case CardAction.NextVehicle:
                _gameboard.MoveToNextVehicle();
                break;

            case CardAction.GoToSpecificField:
                _gameboard.MoveToSpecificSpace(newCard.Parameter);
                break;

            case CardAction.None:
                break;
            }
            Reporter.AddCardActionDestinationSpace(_gameboard.PositionOfPlayer);
        }