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