Dragon quest was heavily inspired from D&D too and is closer to D&D then FF is, FF was only closer to D&D till the third game, FF 4 and beyond started mixing tech with medieval stuff.
Gunner and samurai/ninja classes should NOT exist in a D&D game unless its an spelljamer game(for guns) or...