Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public IfStatement(Expression condition, Statement action)
 {
     this.condition = condition;
     this.action = action;
 }
Ejemplo n.º 3
0
 public UserFunction(string[] argList, Statement body)
 {
     this.argList = argList;
     this.body = body;
 }
Ejemplo n.º 4
0
 internal void AddPreMove(Statement stmt)
 {
     preMoveEvents.Add(stmt);
 }
Ejemplo n.º 5
0
 internal void AddPostMove(Statement stmt)
 {
     postMoveEvents.Add(stmt);
 }
Ejemplo n.º 6
0
 internal void AddCannotMove(Statement stmt)
 {
     cannotMoveEvents.Add(stmt);
 }
Ejemplo n.º 7
0
 public void Add(Statement s)
 {
     stmt.Add(s);
 }