public static void shipSystemReport(ShipSystem shipSystem) { if (shipSystem != null) { Console.WriteLine(shipSystem.systemName); Console.WriteLine(shipSystem.systemName + " in " + shipSystem.systemRoomName + " has a mass of " + shipSystem.mass); Console.WriteLine(shipSystem.currentPowerStored + " power points are stored in this system."); } }
public void regenerateShield(ShipSystem shieldGenerator) { int efficiency = shieldGenerator.shieldEfficiency; int recharge = shieldGenerator.shieldRechargeRate; focusPanel = shieldGenerator.powerPanelFocus; //List<object> panelList = ; if (shieldGenerator.setShieldsToEvenDistribution) { int splitValue = recharge / 12; } if (shieldGenerator.setShieldsToPreferential) { int focusValue = (recharge / 12) * 7; int otherValue = (recharge / 12) * 1; } if (shieldGenerator.setShieldsToExclusive) { } }
public List<ShipSystem> getSystems() { var systems = new ShipSystem[] { powerGenerator, shipCapacitor, fabricator, wasteDisposal, fuelStore, airScrubber, gravityGenerator, temperatureControl, transmitter, receiver, cryptography, weaponsTargeting, weaponsFiring, surgeryTable, hangar, repairBay, heatExchanger, powerDistributor }; return systems.Where(s => s != null).ToList(); }