Exemple #1
0
 public FigMove(Figure fig, Position pos2, bool canEat, CastlingTypes castling = CastlingTypes.None)
 {
     Figure        = fig;
     AfterPosition = pos2;
     CanEat        = canEat;
     CastlingType  = castling;
 }
Exemple #2
0
 private void SetCastling(FigureColors color, CastlingTypes types, bool value)
 {
     castling[color][types] = value;
 }
Exemple #3
0
 public bool GetCastling(FigureColors color, CastlingTypes types)
 {
     return(castling[color][types]);
 }