Ejemplo n.º 1
0
    //Assignment and launch of execution of meneuver

    public void AssignManeuver()
    {
        string parameters = EventSystem.current.currentSelectedGameObject.name;

        Selection.ThisShip.AssignedManeuver = MovementFromString(parameters);

        Selection.ThisShip.InfoPanel.transform.FindChild("DialAssigned" + Selection.ThisShip.Owner.Id).gameObject.SetActive(true);
        Roster.HighlightShipOff(Selection.ThisShip);

        Game.UI.HideDirectionMenu();

        if (Roster.AllManuersAreAssigned(Phases.CurrentPhasePlayer))
        {
            Game.UI.ShowNextButton();
            Game.UI.HighlightNextButton();
        }
    }
Ejemplo n.º 2
0
        public override void Next()
        {
            if (Roster.AllManuersAreAssigned(RequiredPlayer))
            {
                if (RequiredPlayer == Phases.PlayerWithInitiative)
                {
                    RequiredPlayer = Roster.AnotherPlayer(RequiredPlayer);

                    UpdateHelpInfo();
                    HighlightShips();
                    Roster.GetPlayer(RequiredPlayer).AssignManeuver();
                }
                else
                {
                    FinishPhase();
                }
            }
        }
Ejemplo n.º 3
0
    //Assignment and launch of execution of meneuver

    public void AssignManeuver()
    {
        string parameters = EventSystem.current.currentSelectedGameObject.name;

        Selection.ThisShip.SetAssignedManeuver(MovementFromString(parameters));

        UI.HideDirectionMenu();

        if (Phases.CurrentSubPhase.GetType() == typeof(SubPhases.PlanningSubPhase))
        {
            //Selection.ThisShip.InfoPanel.transform.Find("DialAssigned" + Selection.ThisShip.Owner.Id).gameObject.SetActive(true);
            Roster.HighlightShipOff(Selection.ThisShip);

            if (Roster.AllManuersAreAssigned(Phases.CurrentPhasePlayer))
            {
                UI.ShowNextButton();
                UI.HighlightNextButton();
            }
        }
        else
        {
            Triggers.FinishTrigger();
        }
    }