private void PerfromBrTemplatePlanning(Actions.BarrelRollTemplateVariants template) { BarrelRollPlanningSubPhase brPlanning = (SubPhases.BarrelRollPlanningSubPhase)Phases.StartTemporarySubPhaseNew( "Select position", typeof(SubPhases.BarrelRollPlanningSubPhase), delegate { FinishTractorBeamMovement(new ActionsList.BarrelRollAction()); } ); brPlanning.Name = "Select position"; brPlanning.TheShip = TheShip; brPlanning.IsTemporary = true; brPlanning.Controller = Assigner; brPlanning.ObstacleOverlapAllowed = true; Phases.UpdateHelpInfo(); brPlanning.SelectTemplate(template); brPlanning.PerfromTemplatePlanning(); }
private float GetDirectionModifier(Actions.BarrelRollTemplateVariants templateVariant) { return((templateVariant.ToString().Contains("Left")) ? -1 : 1); }
public void SelectTemplate(Actions.BarrelRollTemplateVariants templateVariant) { selectedTemplateVariant = templateVariant; BarrelRollTemplate = GetCurrentBarrelRollHelperTemplateGO(); }