public BooleanUnaryNotEval(BooleanEval booleanEval) { BooleanEval = booleanEval; }
public BooleanBooleanEqualityEval(BooleanEval booleanEval1, BooleanEval booleanEval2) { BooleanEval1 = booleanEval1; BooleanEval2 = booleanEval2; }
public While(BooleanEval numberEval, Command[] commands) { BooleanEval = numberEval; Commands = new List <Command>(commands); }
public BooleanAndEval(BooleanEval booleanEval1, BooleanEval booleanEval2) { BooleanEval1 = booleanEval1; BooleanEval2 = booleanEval2; }
// We can only set the Then-Commands when creating the If. We can set the Else later // but only if it actually exists! public If(BooleanEval booleanEval, Command[] thenCommands) { BooleanEval = booleanEval; ThenCommands = new List <Command>(thenCommands); ElseCommands = new List <Command>(); }