public SatelliteCoverageFactor(FactorVariables factorVariables) : base(factorVariables) { variables.satelliteCoverage = 0; // Initialize coverage for Celestial Bodies (other than the Sun) CelestialBody[] Bodies = FlightGlobals.Bodies.ToArray(); variables.Coverages = new CoverageReport[Bodies.Length - 1]; CelestialBody home = Planetarium.fetch.Home; if (home == null) { home = FlightGlobals.Bodies.Find(body => body.isHomeWorld == true); } if (home != null) { StateFundingGlobal.refRadius = home.Radius / 10; } int k = 0; for (int i = 0; i < Bodies.Length; i++) { CelestialBody Body = Bodies[i]; // Don't need to survey the sun //if (Body.GetName() != StateFundingGlobal.Sun) if (Body != Planetarium.fetch.Sun) { CoverageReport Report = new CoverageReport(); Report.entity = Body.GetName(); // Benchmark: Kerbin // 10 sats till full coverage on Kerbin Report.satCountForFullCoverage = (int)Math.Ceiling(Body.Radius / StateFundingGlobal.refRadius); variables.Coverages[k] = Report; k++; } } }
public DestroyedVesselsFactor(FactorVariables factorVariables) : base(factorVariables) { }
public RoversFactor(FactorVariables factorVariables) : base(factorVariables) { variables.rovers = 0; }
public BasesFactor(FactorVariables _variables) : base(_variables) { variables.Bases = new BaseReport[0]; }
public SpaceStationsFactor(FactorVariables factorVariables) : base(factorVariables) { }
public Factor(FactorVariables _variables) { variables = _variables; }
public MiningRigsFactor(FactorVariables factorVariables) : base(factorVariables) { }
public KerbalsFactor(FactorVariables factorVariables) : base(factorVariables) { }
public ContractsFactor(FactorVariables factorVariables) : base(factorVariables) { }