示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="round"></param>
        /// <param name="showQuestion"></param>
        public RoundQuestion(Entities.GameRound round, Boolean showQuestion)
        {
            if(round == null)
            {
                Question = new ArmedCards.Entities.Card { Type = ArmedCards.Entities.Enums.Card.CardType.Question };
            }
            else
            {
                Question = round.Question;
            }

            this.ShowQuestion = showQuestion;
            this.Instructions = (Int32)Question.Instructions;
        }
示例#2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="round"></param>
        /// <param name="showQuestion"></param>
        public RoundQuestion(Entities.GameRound round, Boolean showQuestion)
        {
            if (round == null)
            {
                Question = new ArmedCards.Entities.Card {
                    Type = ArmedCards.Entities.Enums.Card.CardType.Question
                };
            }
            else
            {
                Question = round.Question;
            }

            this.ShowQuestion = showQuestion;
            this.Instructions = (Int32)Question.Instructions;
        }