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