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