Rock slopes and gravel beaches under wave attack