Ejemplo n.º 1
0
 internal void setVPI(Vessel thisVessel, LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI        = thisVPI;
     this.MotherShip = thisVessel;
     this.PowSys     = thisPowSys;
     this.PT1        = this.PowSys.setPowerTaker("SensorArray", "SubSystem", 1250, 2500, 5000);
 }
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("WeaponSystems", "SubSystem", 1250, 0, 0);
     PT2         = this.PowSys.setPowerTaker("PhaserBanks", "SubSystem", 1250, 5000, 0);
 }
Ejemplo n.º 3
0
 public void setVPI(Vessel thisVessel, LCARS_VesselPartsInventory thisVPI, LCARS_CargoBay thisSTCB, LCARS_PowerSystem thisPowSys)
 {
     this.VPI           = thisVPI;
     this.STCB          = thisSTCB;
     TargetShipSelected = thisVessel;
     this.PowSys        = thisPowSys;
     PT1 = this.PowSys.setPowerTaker("FuelTransfer", "SubSystem", 1250, 1250, 0);
     PT2 = this.PowSys.setPowerTaker("FuelTankManager", "SubSystem", 1250, 1250, 0);
 }
Ejemplo n.º 4
0
        private void ShipScanner_GUI()
        {
            if (TargetShip_1 == null)
            {
                GUI_Ship_List();
            }
            else
            {
                float power = 0f;
                if (GUILayout.Button("Unset object"))
                {
                    TargetShip_1 = null;
                    ShipScanMode = 0;
                }
                switch (ShipScanMode)
                {
                default:     //case 1
                    sub_VPI = new LCARS_VesselPartsInventory();
                    sub_VPI.init(TargetShip_1);
                    sub_VPI.scanVessel();

                    GUILayout.Label("Standard Scan Results");
                    GUI_Ship_Scan_Level1(TargetShip_1);
                    power = PT1.L1_usage;
                    this.PowSys.draw(PT1.takerName, power);

                    if (GUILayout.Button("Perform a Tactical Scan"))
                    {
                        ShipScanMode = 2;
                    }
                    break;

                case 2:
                    GUILayout.Label("Tactical Scan Results");
                    GUI_Ship_Scan_Level1(TargetShip_1);
                    GUI_Ship_Scan_Level2(TargetShip_1);
                    power = PT1.L1_usage + PT1.L2_usage;
                    this.PowSys.draw(PT1.takerName, power);

                    if (GUILayout.Button("Scan the Interior"))
                    {
                        ShipScanMode = 3;
                    }
                    break;

                case 3:
                    GUILayout.Label("Interior Scan Results");
                    GUI_Ship_Scan_Level1(TargetShip_1);
                    GUI_Ship_Scan_Level2(TargetShip_1);
                    GUI_Ship_Scan_Level3(TargetShip_1);
                    power = PT1.L1_usage + PT1.L2_usage + PT1.L3_usage;
                    this.PowSys.draw(PT1.takerName, power);
                    break;
                }
            }
        }
Ejemplo n.º 5
0
 public void setVPI(LCARS_VesselPartsInventory thisVPI)
 {
     this.VPI = thisVPI;
 }
Ejemplo n.º 6
0
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("TransporterSystem", "SubSystem", 1250, 2500, 500);
 }
 public void setVPI(LCARS_VesselPartsInventory thisVPI, LCARS_PowerSystem thisPowSys)
 {
     this.VPI    = thisVPI;
     this.PowSys = thisPowSys;
     PT1         = this.PowSys.setPowerTaker("PhotonTorpedo", "SubSystem", 0, 10000f, 0);
 }
 internal void setVessel(Vessel thisVessel, LCARS_VesselPartsInventory thisVPI)
 {
     this.vessel = thisVessel;
     this.VPI    = thisVPI;
 }