예제 #1
0
파일: KozelGame.cs 프로젝트: obstrel/Kozel
        public void StartNewGame()
        {
            Game game = new Game(players);

            Team1.ClearTricks();
            Team2.ClearTricks();
            game.GameFinished        += Game_GameFinished;
            game.ActivePlayerChanged += Game_ActivePlayerChanged;
            game.RoundFinished       += Game_RoundFinished;
            game.RoundStarted        += Game_RoundStarted;
            games.Add(game);
            game.Start();

            if (GameStarted != null)
            {
                GameStarted(this, new EventArgs());
            }
        }