public static bool hasProbeCommand(this Vessel vessel) { return((vessel.CurrentCommand() & VesselCommand.Probe) == VesselCommand.Probe); }
/// <summary> /// Checks if this vessel has a properly-crewed manned command pod. /// </summary> /// <returns><c>true</c>, if this vessel is adequately crewed for control, <c>false</c> otherwise.</returns> /// <param name="vessel"></param> public static bool hasCrewCommand(this Vessel vessel) { return((vessel.CurrentCommand() & VesselCommand.Crew) == VesselCommand.Crew); }