Change bit flags used by the RayGun functions into enums