Exemple #1
0
        private void Practice_GivePoints(int points)
        {
            Practice_SetTrustExchangeControlsEnabledStateTo(false);

            int scoreAtRoundStart = Practice_PlayerScore;

            Practice_NotifyPlayerOfSendingPoints(points);
            Practice_NotifyPlayerOfReductionOfScoreBySentPoints(points);

            Practice_CurrentRoundRawPointResponse = Practice_CurrentRoundOrdinal % 2 == 0 ? 0 : points;

            Practice_NotifyPlayerOfWaitingOnPersonaResponse();
            Practice_NotifyPlayerOfPersonaResponse();
            Practice_NotifyPlayerOfScoringThisRound(scoreAtRoundStart);

            if (Practice_CurrentRoundOrdinal < Practice_MaximumRoundOrdinal)
            {
                Practice_CurrentRoundOrdinal++;
                Practice_NextRoundButton.Visible = true;
            }
            else
            {
                ShowMessageBoxForTransitioningFromPracticeTaskToTrustExchangeTask();
                Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
                AdvanceToTrustExchangeTask();
            }
        }
Exemple #2
0
        private void Practice_GivePoints(int points)
        {
            Practice_SetTrustExchangeControlsEnabledStateTo(false);

            int scoreAtRoundStart = Practice_PlayerScore;

            Practice_NotifyPlayerOfSendingPoints(points);
            Practice_NotifyPlayerOfReductionOfScoreBySentPoints(points);

            Practice_CurrentRoundRawPointResponse = Practice_CurrentRoundOrdinal % 2 == 0 ? 0 : points;

            Practice_NotifyPlayerOfWaitingOnPersonaResponse();
            Practice_NotifyPlayerOfPersonaResponse();
            Practice_NotifyPlayerOfScoringThisRound(scoreAtRoundStart);

            if (Practice_CurrentRoundOrdinal < Practice_MaximumRoundOrdinal)
            {
                Practice_CurrentRoundOrdinal++;
                Practice_NextRoundButton.Visible = true;
            }
            else
            {
                MessageBox.Show(string.Format("You have finished the Practice {0}.", TrustExchangeTaskTab.Text), string.Format("Advancing to {0}", TrustExchangeTaskTab.Text), MessageBoxButtons.OK);
                Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
                AdvanceToTrustExchangeTask();
            }
        }
Exemple #3
0
        private void AdvanceToTrustExchangeTask()
        {
            StatusButtonAsLabel.SetText(STATUS_TEXT__GIVE_1_OR_2_POINTS_TO_PLAYER2);
            ScoreButtonAsLabel.SetText(SCORE_TEXT, LogicEngine.TrustExchangeTask.PlayerScore);

            SetTrustExchangePictureBoxImageToCurrentRoundPersona();

            Practice_TrustExchangeTaskTab.RemoveFromAllowedTabs();
            ShowTab(TrustExchangeTaskTab);
        }