Example #1
0
        public override void PerformTurnAction(XmlGame xmlGame)
        {
            // Set the turnID before we end the turn
            int currentTurn = xmlGame.CurrentTurn;

            GamePlayer player = xmlGame.GetPlayer(Sender);

            // Reset ability to play devcards
            foreach (DevelopmentCard dc in player.DevCards)
                dc.IsPlayable = true;

            xmlGame.PlayerOnTurn = xmlGame.NextPlayer;

            xmlGame.EndTurn();

            // Set the message
            _Message = String.Format("{0} ended turn.", player.XmlPlayer.Name);

            base.PerformTurnAction(xmlGame);

            _TurnID = currentTurn;
        }