Esempio n. 1
0
        protected override void StartRepositionExecutionSubphase()
        {
            Pause();

            TheShip.ToggleShipStandAndPeg(false);

            if (SelectedDirectionPrimary == Direction.Top)
            {
                DecloakBoostExecutionSubPhase execution = (DecloakBoostExecutionSubPhase)Phases.StartTemporarySubPhaseNew(
                    "Boost execution",
                    typeof(DecloakBoostExecutionSubPhase),
                    CallBack
                    );
                execution.TheShip             = TheShip;
                execution.IsTractorBeamBoost  = IsTractorBeamBarrelRoll;
                execution.SelectedBoostHelper = SelectedBoostHelper;
                execution.Start();
            }
            else
            {
                BarrelRollExecutionSubPhase executionSubphase = (DecloakBarrelRollExecutionSubPhase)Phases.StartTemporarySubPhaseNew(
                    "Barrel Roll execution",
                    typeof(DecloakBarrelRollExecutionSubPhase),
                    CallBack
                    );

                executionSubphase.TheShip                 = TheShip;
                executionSubphase.TemporaryShipBase       = TemporaryShipBaseFinal;
                executionSubphase.Direction               = SelectedDirectionPrimary;
                executionSubphase.IsTractorBeamBarrelRoll = IsTractorBeamBarrelRoll;

                executionSubphase.Start();
            }
        }
Esempio n. 2
0
        public void StartBarrelRollExecution(Ship.GenericShip ship)
        {
            Pause();

            Selection.ThisShip.ToggleShipStandAndPeg(false);
            BarrelRollTemplate.SetActive(false);

            BarrelRollExecutionSubPhase executionSubphase = (BarrelRollExecutionSubPhase)Phases.StartTemporarySubPhaseNew(
                "Barrel Roll execution",
                typeof(BarrelRollExecutionSubPhase),
                CallBack
                );

            executionSubphase.TemporaryShipBase = TemporaryShipBase;
            executionSubphase.HelperDirection   = HelperDirection;

            executionSubphase.Start();
        }
Esempio n. 3
0
        protected virtual void StartRepositionExecutionSubphase()
        {
            Pause();

            TheShip.ToggleShipStandAndPeg(false);

            BarrelRollExecutionSubPhase executionSubphase = (BarrelRollExecutionSubPhase)Phases.StartTemporarySubPhaseNew(
                "Barrel Roll execution",
                typeof(BarrelRollExecutionSubPhase),
                CallBack
                );

            executionSubphase.TheShip                 = TheShip;
            executionSubphase.TemporaryShipBase       = TemporaryShipBaseFinal;
            executionSubphase.Direction               = SelectedDirectionPrimary;
            executionSubphase.IsTractorBeamBarrelRoll = IsTractorBeamBarrelRoll;

            executionSubphase.Start();
        }
Esempio n. 4
0
        public void StartBarrelRollExecution()
        {
            Pause();

            TheShip.ToggleShipStandAndPeg(false);
            BarrelRollTemplate.SetActive(false);

            BarrelRollExecutionSubPhase executionSubphase = (BarrelRollExecutionSubPhase)Phases.StartTemporarySubPhaseNew(
                "Barrel Roll execution",
                typeof(BarrelRollExecutionSubPhase),
                CallBack
                );

            executionSubphase.TheShip                 = TheShip;
            executionSubphase.TemporaryShipBase       = TemporaryShipBase;
            executionSubphase.HelperDirection         = HelperDirection;
            executionSubphase.IsTractorBeamBarrelRoll = IsTractorBeamBarrelRoll;

            executionSubphase.Start();
        }