// Закрытие игрового экрана public void CloseGameScreen() { if (betForm123 != null) { betForm123.Close(); betForm123 = null; } if (betForm4 != null) { betForm4.Close(); betForm4 = null; } if (bonusesForm != null) { bonusesForm.Close(); bonusesForm = null; } if (gameForm != null) { gameForm.Close(); gameForm = null; } }
// Обработчик получения списка карт public void GetCardsHandler(Message Msg) { // MessageBox.Show("Раздача карт игрок " + Place.ToString()); Dictionary<string, string> cParams = Helpers.SplitCommandString(Msg.Msg); string cardsStr = cParams["Cards"]; int totalScore1 = Int32.Parse(cParams["Scores1"]); int totalScore2 = Int32.Parse(cParams["Scores2"]); LastScore1 = totalScore1 - TotalScore1; LastScore2 = totalScore2 - TotalScore2; TotalScore1 = totalScore1; TotalScore2 = totalScore2; LocalScore1 = 0; LocalScore2 = 0; Player1Order = null; Player2Order = null; Player3Order = null; Player4Order = null; IsMakingMove = false; Player1BonusesTypes = null; Player2BonusesTypes = null; Player3BonusesTypes = null; Player4BonusesTypes = null; P1Card = null; P2Card = null; P3Card = null; P4Card = null; Bonuses = null; BelotePlace = 0; RebelotePlace = 0; AllCards = new CardList(cardsStr); PossibleCards = AllCards; Status = TableStatus.BAZAR; betForm123 = new BetFromType123(this); gameForm.UpdateGraphics(); }
// Показ игрового экрана public void ShowGameScreen() { gameForm = new GameForm(this.Game); betForm123 = new BetFromType123(this.Game); gameForm.Show(); }