public Task(OpheliaData.TaskType n, string[] toAsk) { this.complete = false; this.type = n; this.askPhrases = toAsk; this.userAnswer = String.Empty; }
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(); }
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; }