/// <summary> /// สร้างคำถาม /// </summary> protected override void CreateQuestion() { Question = new Question { CupLevel = _cupLevel }; const int backSwapCount = 0; Question.FrontRow = Question.AddQuestionRow(CupCount, SwapCount,_swapSpeed, true); Question.BackRow = Question.AddQuestionRow(CupCount, backSwapCount, _swapSpeed, false); // กำหนดชื่อวัตถุที่อยู่ภายในแก้ว _items = new List<string>{ "monster8", "monster5", "monster4", }; int cupLevel = int.Parse(_cupLevel); const int Easy = 2; const int Normal = 3; const int Hard = 4; if (cupLevel >= Easy) { _items.Add("monster7"); _items.Add("monster1"); } if (cupLevel >= Normal) { _items.Add("monster2"); _items.Add("monster6"); } if (cupLevel >= Hard) _items.Add("monster3"); _items = _questionManager.CreateQuestionBefore(_items, _cupCount); Question.FrontRow.BeforeCup = _questionManager.CreateQuestionBefore(_items, _cupCount); Question.FrontRow.Sequence = _questionManager.CreateSwapSequence(_cupCount, _swapCount); Question.FrontRow.AfterCup = _questionManager.GetQuestionAfter(Question.FrontRow.BeforeCup, Question.FrontRow.Sequence); Question.BackRow.BeforeCup = _questionManager.CreateQuestionBefore(_items, _backCupCount); }
/// <summary> /// สร้างคำถาม /// </summary> protected override void CreateQuestion() { Question = new Question() { CupLevel = _cupLevel }; Question.FrontRow = Question.AddQuestionRow(_cupCount, _swapCount, _swapSpeed, true); Question.BackRow = Question.AddQuestionRow(_backCupCount, _backSwapCount, _swapSpeed, false); // กำหนดชื่อวัตถุที่อยู่ภายในแก้ว _items = new List<string>{ "voodoo8", "voodoo7", "voodoo4", }; int cupLevel = int.Parse(_cupLevel); const int Easy = 2; const int Normal = 3; const int Hard = 4; if (cupLevel >= Easy) { _items.Add("voodoo6"); _items.Add("voodoo5"); } if (cupLevel >= Normal) { _items.Add("voodoo1"); _items.Add("voodoo2"); } if (cupLevel >= Hard) _items.Add("voodoo3"); _items = _questionManager.CreateQuestionBefore(_items, _backCupCount); Question.BackRow.BeforeCup = _questionManager.CreateQuestionBefore(_items, _backCupCount); Question.BackRow.Sequence = _questionManager.CreateSwapSequence(_backCupCount, _backSwapCount); Question.BackRow.AfterCup = _questionManager.GetQuestionAfter(Question.BackRow.BeforeCup, Question.BackRow.Sequence); const string Empty = "EmptyItem"; if (_cupCount != _backCupCount) { _items.Add(Empty); } Question.FrontRow.BeforeCup = _questionManager.CreateQuestionBefore(_items, _cupCount); Question.FrontRow.Sequence = _questionManager.CreateSwapSequence(_cupCount, _swapCount); Question.FrontRow.AfterCup = _questionManager.GetQuestionAfter(Question.FrontRow.BeforeCup, Question.FrontRow.Sequence); }
/// <summary> /// สร้างคำถาม /// </summary> protected override void CreateQuestion() { // สร้างคำถาม Question = new Question() { CupLevel = _cupLevel }; Question.FrontRow = Question.AddQuestionRow(_cupCount, _swapCount,_swapSpeed, true); // กำหนดชื่อวัตถุที่อยู่ภายในแก้ว _items = new List<string>{ "poison2", "poison6", "poison4", }; int cupLevel = int.Parse(_cupLevel); const int Easy = 2; const int Normal = 3; const int Hard = 4; if(cupLevel >= Easy) { _items.Add("poison7"); _items.Add("poison5"); } if(cupLevel >= Normal) { _items.Add("poison8"); _items.Add("poison3"); } if (cupLevel >= Hard) _items.Add("poison1"); _items = _questionManager.CreateQuestionBefore(_items, _cupCount, IncorrectAnswerItem); Question.FrontRow.BeforeCup = _questionManager.CreateQuestionBefore(_items, _cupCount); Question.FrontRow.Sequence = _questionManager.CreateSwapSequence(_cupCount, _swapCount); Question.FrontRow.AfterCup = _questionManager.GetQuestionAfter(Question.FrontRow.BeforeCup, Question.FrontRow.Sequence); }