Пример #1
0
        /// <summary>
        /// Starts a players turn
        /// </summary>
        /// <param name="player"></param>
        private void StartTurn(CatanPlayer player)
        {
            if (logger.IsInfoEnabled)
            {
                logger.InfoFormat("Start turn [{0}].", player.Name);
            }

            ActivePlayerIndex = Array.IndexOf(players, player);
        }
Пример #2
0
 private bool IsActivePlayer(CatanPlayer player)
 {
     return(players[activePlayerIndex] == player);
 }