private void ParsePrintPropBool(WordReader wordReader, Func <bool, bool> filter) { var propBool = ParsePropBool(wordReader); wordReader.GetEnd(); PrintPropBool(propBool, filter); }
private void ParsePrintKnowledge(WordReader wordReader, Func <bool, bool> filter) { var knowledge = ParseKnowledge(wordReader); wordReader.GetEnd(); PrintKnowledge(knowledge, filter); }
private void ParsePers(WordReader wordReader) { var name = wordReader.GetWord(); wordReader.GetEnd(); AddPers(name); }
private void ParsePrintPropInt(WordReader wordReader) { var propInt = ParsePropInt(wordReader); wordReader.GetEnd(); PrintPropInt(propInt); }
private void ParsePrintPersInsight(WordReader wordReader) { var persIndex = ParsePersIndex(wordReader); var day = ParseDay(wordReader); wordReader.GetEnd(); PrintPersInsight(persIndex, day); }
private void ParseStateVar(WordReader wordReader) { var name = wordReader.GetWord(); var valueList = ParseList <string>(wordReader, ParseString); wordReader.GetEnd(); AddStateVar(name, valueList); }
private void ParseDayKnowledge(WordReader wordReader) { var persIndex = ParsePersIndex(wordReader); var day = ParseDay(wordReader); var knowledge = ParseKnowledge(wordReader); wordReader.GetEnd(); AddDayKnowledge(persIndex, day, knowledge); }
private void ParseInsight(WordReader wordReader) { var persIndex = ParsePersIndex(wordReader); var day = ParseDay(wordReader); var insightName = wordReader.GetWord(); var knowledge = ParseKnowledge(wordReader); wordReader.GetEnd(); AddInsightKeyword(persIndex, day, insightName, knowledge); }
private void ParseKnowledgeVar(WordReader wordReader) { var name = wordReader.GetWord(); wordReader.GetWord("="); var prop = ParseKnowledge(wordReader); wordReader.GetEnd(); AddKnowledge(name, prop); }
private void ParsePropBoolVar(WordReader wordReader) { var name = wordReader.GetWord(); wordReader.GetWord("="); var prop = ParsePropBool(wordReader); wordReader.GetEnd(); AddPropBool(name, prop); }
private void ParseState(WordReader wordReader) { var valueList = ParseList <string>(wordReader, ParseString); wordReader.GetEnd(); var result = new State(); foreach (var i in valueList.Length.Traverse()) { result.Add(StateVarList[i].GetValueIndex(valueList[i])); } SetState(result); }