private void PerfromStraightTemplatePlanning() { BoostPlanningSubPhase boostPlanning = (SubPhases.BoostPlanningSubPhase)Phases.StartTemporarySubPhaseNew( "Boost", typeof(SubPhases.BoostPlanningSubPhase), delegate { FinishTractorBeamMovement(new ActionsList.BoostAction()); } ); InitializeBostPlanning(boostPlanning); Phases.UpdateHelpInfo(); boostPlanning.TryPerformBoost(); }
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(); }