public bool StartGame() { factorTypes = new FactorTypes(); factors = new List <Factor>(); resources = new Factor(); hero = new Hero() { position = new Position() { xValue = 0 } }; outputLines = new List <string>(); try { setGameModel(); playGame(); return(true); } catch (Exception ex) { outputLines.Add("Error: " + ex.Message); outputLines.Add("Inner Exception: " + ex.InnerException); return(false); } }
public OptionalFactor(OptionalType type, string postiveanswer, string negativeanswer) { TypeOfFactor = FactorTypes.Optional; TypeOfOptional = type; Positive = postiveanswer; Negative = negativeanswer; }
public QuantitativeFactor(QuantitativeType type, string measurement) { TypeOfFactor = FactorTypes.Quantitative; TypeOfQuantitative = type; Measurement = measurement; }
public BracketFactor(BracketType type, Dictionary <string, string> brackets) { TypeOfFactor = FactorTypes.Bracket; TypeOfBracket = type; _brackets = brackets; }