Exemplo n.º 1
0
        public void PlayGame()
        {
            Utility.PlaySound("pool_break.wav");

            _game.RemoveAllPlayers();
            foreach (var player in _players)
            {
                _game.AddPlayer(player);
            }
            _game.Start();

            TurnMenu();
        }
Exemplo n.º 2
0
        public ActionResult <Status> RemoveAllPlayers()
        {
            Status result = null;

            try
            {
                _game.RemoveAllPlayers();
                result = new Status();
            }
            catch (Exception ex)
            {
                result = new Status(false, ex.Message);
            }
            return(UpdateStatus(result));
        }