Пример #1
0
 public Task(OpheliaData.TaskType n, string[] toAsk)
 {
     this.complete = false;
     this.type = n;
     this.askPhrases = toAsk;
     this.userAnswer = String.Empty;
 }
Пример #2
0
 private void AskNextQuestion(int waitTime = 500)
 {
     Thread.Sleep(waitTime);
     foreach (var t in this.allTasks) {
         if (!t.complete) {
             this.Interface.ComposeMessage(OpheliaData.GetAnyAskPhraseFromTask(t));
             this.curTask = t.type;
             return;
         }
     }
     this.Interface.ComposeMessage(OpheliaData.questionsEnded);
     this.Interface.ComposeMessage(OpheliaData.askMore);
     this.ThreadComplete();
 }
Пример #3
0
 public OpheliaCore()
 {
     this.allTasks = new List<Task>(OpheliaData.tasksToComplete);
     this.curTask = OpheliaData.TaskType.Undef;
     this.allTasks.Find(x => x.type == OpheliaData.TaskType.ChildrenCount).complete = true;
 }