public SetWire(int x, int y, int x2, int y2, TSPlayer plr, int wire, bool state, Expression expression) : base(x, y, x2, y2, plr) { this.expression = expression ?? new TestExpression(new Test(t => true)); this.state = state; this.wire = wire; }
public static bool CanSet(bool Tile, ITile tile, int type, Selection selection, Expressions.Expression expression, MagicWand magicWand, int x, int y, TSPlayer player) => Tile ? ((((type >= 0) && (!tile.active() || (tile.type != type))) || ((type == -1) && tile.active()) || ((type == -2) && ((tile.liquid == 0) || (tile.liquidType() != 1))) || ((type == -3) && ((tile.liquid == 0) || (tile.liquidType() != 2))) || ((type == -4) && ((tile.liquid == 0) || (tile.liquidType() != 0)))) && selection(x, y, player) && expression.Evaluate(tile) && magicWand.InSelection(x, y)) : ((tile.wall != type) && selection(x, y, player) && expression.Evaluate(tile) && magicWand.InSelection(x, y));
public Paste(int x, int y, TSPlayer plr, int alignment, Expression expression) : base(x, y, Int32.MaxValue, Int32.MaxValue, plr) { this.alignment = alignment; this.expression = expression; }
public PaintWall(int x, int y, int x2, int y2, TSPlayer plr, int color, Expression expression) : base(x, y, x2, y2, plr) { this.color = color; this.expression = expression ?? new TestExpression(new Test(t => true)); }
public static bool TryParseTree(IEnumerable<string> parameters, out Expression expression) { expression = null; if (parameters.FirstOrDefault() != "=>") return false; try { expression = ParseExpression(ParsePostfix(ParseInfix(String.Join(" ", parameters.Skip(1))))); return true; } catch { return false; } }
public NotExpression(Expression expression) { Left = expression; }
public SetWall(int x, int y, int x2, int y2, TSPlayer plr, int wallType, Expression expression) : base(x, y, x2, y2, plr) { this.expression = expression ?? new TestExpression(new Test(t => true)); this.wallType = wallType; }
public SetActuator(int x, int y, int x2, int y2, TSPlayer plr, bool state, Expression expression) : base(x, y, x2, y2, plr) { this.expression = expression ?? new TestExpression(new Test(t => true)); this.state = state; }
public Set(int x, int y, int x2, int y2, TSPlayer plr, int tileType, Expression expression) : base(x, y, x2, y2, plr) { this.tileType = tileType; this.expression = expression ?? new TestExpression(new Test(t => true)); }
public AndExpression(Expression left, Expression right) { Left = left; Right = right; }