예제 #1
0
 public void removeEvents(IValidationEvents ievents)
 {
     EventPromote      -= new Promote(ievents.Promotion);
     EventIsMated      -= new IsMated(ievents.KingIsMated);
     EventIsStaleMated -= new IsStaleMated(ievents.KingIsStaleMated);
     EventIsInCheck    -= new IsInCheck(ievents.KingIsInCheck);
     EventIsFree       -= new IsFree(ievents.KingIsFree);
     EventMovePiece    -= new movePiece(ievents.updateBoard);
 }
예제 #2
0
 public void addEvents(IValidationEvents ievents)
 {
     EventPromote      += new Promote(ievents.Promotion);
     EventIsMated      += new IsMated(ievents.KingIsMated);
     EventIsStaleMated += new IsStaleMated(ievents.KingIsStaleMated);
     EventIsInCheck    += new IsInCheck(ievents.KingIsInCheck);
     EventIsFree       += new IsFree(ievents.KingIsFree);
     EventIsDone       += new IsDone(ievents.finishedMove);
     EventMovePiece    += new movePiece(ievents.updateBoard);
 }