예제 #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;
 }
예제 #2
0
 public IfStatement(Expression condition, Statement action)
 {
     this.condition = condition;
     this.action = action;
 }
예제 #3
0
 public UserFunction(string[] argList, Statement body)
 {
     this.argList = argList;
     this.body = body;
 }
예제 #4
0
파일: Player.cs 프로젝트: hgabor/boardgame
 internal void AddPreMove(Statement stmt)
 {
     preMoveEvents.Add(stmt);
 }
예제 #5
0
파일: Player.cs 프로젝트: hgabor/boardgame
 internal void AddPostMove(Statement stmt)
 {
     postMoveEvents.Add(stmt);
 }
예제 #6
0
파일: Player.cs 프로젝트: hgabor/boardgame
 internal void AddCannotMove(Statement stmt)
 {
     cannotMoveEvents.Add(stmt);
 }
예제 #7
0
 public void Add(Statement s)
 {
     stmt.Add(s);
 }