Example #1
0
        public void StartBoostPlanning()
        {
            AvailableBoostMoves = TheShip.GetAvailableBoostTemplates();

            InitializeRendering();

            AskSelectTemplate();
        }
Example #2
0
        public void StartBoostPlanning()
        {
            AvailableBoostMoves = TheShip.GetAvailableBoostTemplates(HostAction);

            InitializeRendering();

            if (SelectedBoostHelper != null)
            {
                SelectTemplate(AvailableBoostMoves.First(n => n.Name == SelectedBoostHelper));
                SelectTemplateDecisionIsTaken();
            }
            else
            {
                AskSelectTemplate();
            }
        }
Example #3
0
        public void StartBoostPlanning()
        {
            foreach (Actions.BoostTemplates boostHelper in TheShip.GetAvailableBoostTemplates())
            {
                switch (boostHelper)
                {
                case Actions.BoostTemplates.Straight1:
                    AvailableBoostDirections.Add("Straight 1");
                    break;

                case Actions.BoostTemplates.RightBank1:
                    AvailableBoostDirections.Add("Bank 1 Right");
                    break;

                case Actions.BoostTemplates.LeftBank1:
                    AvailableBoostDirections.Add("Bank 1 Left");
                    break;

                case Actions.BoostTemplates.RightTurn1:
                    AvailableBoostDirections.Add("Turn 1 Right");
                    break;

                case Actions.BoostTemplates.LeftTurn1:
                    AvailableBoostDirections.Add("Turn 1 Left");
                    break;

                default:
                    AvailableBoostDirections.Add("Straight 1");
                    break;
                }
            }

            InitializeRendering();

            AskSelectTemplate();
        }