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