public MoveRule(string piece, CoordExpr from, CoordExpr to, bool targetEmpty, string label, Expression condition, Statement action, Game g) { PieceType = piece; From = from; To = to; TargetMustBeEmpty = targetEmpty; Label = label; Condition = condition; this.action = action; }
public IfStatement(Expression condition, Statement action) { this.condition = condition; this.action = action; }
public UserFunction(string[] argList, Statement body) { this.argList = argList; this.body = body; }
internal void AddPreMove(Statement stmt) { preMoveEvents.Add(stmt); }
internal void AddPostMove(Statement stmt) { postMoveEvents.Add(stmt); }
internal void AddCannotMove(Statement stmt) { cannotMoveEvents.Add(stmt); }
public void Add(Statement s) { stmt.Add(s); }