Esempio n. 1
0
        public virtual void NextDay( )
        {
            #region End Today

            foreach (Buff buff in GameBuffs)
            {
                buff.EndToday( );
            }

            foreach (Player player in GamePlayers)
            {
                player.EndToday( );
            }

            Map.EndToday( );

            StockMarket.EndToday( );

            Calendar.EndToday( );

            #endregion

            List <Player> winners = GamePlayers.Where(player => WinningCondition.IsWin(player)).ToList( );
            if (winners.Any( ))
            {
                GameResult info = new GameResult {
                    Winers = winners
                };
                GameOver(info);
            }
        }