Esempio n. 1
0
        private void CheckCanBoost()
        {
            BoostPlanningSubPhase boostPlanning = new BoostPlanningSubPhase();

            InitializeBostPlanning(boostPlanning);
            boostPlanning.TryConfirmBoostPosition(CheckCanBoostCallback);
        }
Esempio n. 2
0
 private void InitializeBostPlanning(BoostPlanningSubPhase boostPlanning)
 {
     boostPlanning.TheShip                = TheShip;
     boostPlanning.Name                   = "Tractor beam boost";
     boostPlanning.IsTemporary            = true;
     boostPlanning.SelectedBoostHelper    = "Straight 1";
     boostPlanning.ObstacleOverlapAllowed = true;
     boostPlanning.InitializeRendering();
 }
Esempio n. 3
0
        private void PerfromStraightTemplatePlanning()
        {
            BoostPlanningSubPhase boostPlanning = (SubPhases.BoostPlanningSubPhase)Phases.StartTemporarySubPhaseNew(
                "Boost",
                typeof(SubPhases.BoostPlanningSubPhase),
                delegate {
                FinishTractorBeamMovement(new ActionsList.BoostAction());
            }
                );

            InitializeBostPlanning(boostPlanning);
            Phases.UpdateHelpInfo();
            boostPlanning.TryPerformBoost();
        }
Esempio n. 4
0
        private void PerfromStraightTemplatePlanning()
        {
            BoostAction stubAction = new BoostAction()
            {
                HostShip = TheShip
            };

            BoostPlanningSubPhase boostPlanning = (BoostPlanningSubPhase)Phases.StartTemporarySubPhaseNew(
                "Boost",
                typeof(BoostPlanningSubPhase),
                delegate {
                FinishTractorBeamMovement(stubAction);
            }
                );

            boostPlanning.HostAction = stubAction;
            InitializeBostPlanning(boostPlanning);
            Phases.UpdateHelpInfo();
            boostPlanning.TryPerformBoost();
        }