Exemple #1
0
        private void CheckCanBoost()
        {
            BoostPlanningSubPhase boostPlanning = new BoostPlanningSubPhase();

            InitializeBostPlanning(boostPlanning);
            boostPlanning.TryConfirmBoostPosition(CheckCanBoostCallback);
        }
        private void PerfromStraightTemplatePlanning()
        {
            BoostAction stubAction = new BoostAction()
            {
                HostShip = TheShip
            };

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

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