コード例 #1
0
        private void End()
        {
            if (this.State != GameState.Aborted)
            {
                this.State = GameState.Ended;
            }

            Reset();
            _ActivePlayer = null;
            foreach (Player player in _Players)
            {
                lock (player)
                    player.End();
            }

            if (GameEndedEvent != null)
            {
                GameEndedEventArgs geea = new GameEndedEventArgs();
                GameEndedEvent(this, geea);
            }
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: micahpaul/dominion_net_multi
		private void End()
		{
			if (this.State != GameState.Aborted)
				this.State = GameState.Ended;

			Reset();
			_ActivePlayer = null;
			foreach (Player player in _Players)
			{
				lock(player)
					player.End();
			}

			if (GameEndedEvent != null)
			{
				GameEndedEventArgs geea = new GameEndedEventArgs();
				GameEndedEvent(this, geea);
			}
		}