Returns an instance of RoleFlag with RoleFlag.shift equal to the specified shift.
if shift is not in 0..30.