コード例 #1
0
 public M_AnswerStats(int qId, int gRound, M_PlayerAnswer fpAnswer, string gId)
 {
     QuestionId          = qId;
     GameRound           = gRound;
     FocusedPlayerAnswer = fpAnswer;
     OtherPlayerAnswers  = new List <M_PlayerAnswer>();
     GameId = gId;
 }
コード例 #2
0
        public void GenerateNextQuestion()
        {
            int i = new Random().Next(0, GameQuestions.Count);

            while (GameQuestions[i].GameRound != GameRound)
            {
                i = new Random().Next(0, GameQuestions.Count);
            }

            FocusedQuestionId = GameQuestions[i].QuestionId;
            M_PlayerAnswer emptyFocusedPlayerAnswer = new M_PlayerAnswer(FocusedPlayerId);

            M_AnswerStats newAnswerStats = new M_AnswerStats(FocusedQuestionId, GameRound, emptyFocusedPlayerAnswer, GameId);

            GameAnswerStats.Add(newAnswerStats);
        }