Exemplo n.º 1
0
    private void SwitchToDiceRerollsPanel()
    {
        GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew <DiceRerollSubphase>("Dice Reroll", DoCallback);

        ToggleDiceModificationsPanel(false);
        ToggleDiceRerollsPanel(ShowOnlyForHuman());
        subphase.Start();
    }
Exemplo n.º 2
0
        public override void NextPhase()
        {
            Selection.DeselectAllShips();

            GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartPlanningPhase);

            (subphase as NotificationSubPhase).TextToShow = "Planning";
            subphase.Start();
        }
            private static void StartSubPhase()
            {
                GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew <ManualCollisionPredictionSubPhase>(
                    "Manual collision prediction",
                    Finish
                    );

                subphase.Start();
            }
Exemplo n.º 4
0
        public override void StartPhase()
        {
            Name = "Setup Phase";

            GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartSetupPhase);

            (subphase as NotificationSubPhase).TextToShow = "Setup";
            subphase.Start();
        }
Exemplo n.º 5
0
    public void Start()
    {
        IsExecuted = true;

        Combat.DiceModifications.ShowDiceModificationsUiEmpty();

        GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew(
            SubphaseType.Name,
            SubphaseType,
            Combat.DiceModifications.Next
            );

        subphase.Start();
    }
Exemplo n.º 6
0
        public override void StartPhase()
        {
            Name = "Combat Phase";

            if (Phases.HasOnCombatPhaseStartEvents)
            {
                GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartCombatStartSubPhase);
                (subphase as NotificationSubPhase).TextToShow = "Start of Combat";
                subphase.Start();
            }
            else
            {
                StartCombatStartSubPhase();
            }
        }
Exemplo n.º 7
0
        public override void NextPhase()
        {
            Selection.DeselectAllShips();

            if (Phases.HasOnEndPhaseStartEvents)
            {
                GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartEndPhase);
                (subphase as NotificationSubPhase).TextToShow = "End";
                subphase.Start();
            }
            else
            {
                StartEndPhase();
            }
        }
Exemplo n.º 8
0
        public override void NextPhase()
        {
            Selection.DeselectAllShips();

            bool anyShipHasSystemsAbility = Roster.AllShips.Values.Any(n => n.IsSystemsAbilityCanBeActivated);

            if (anyShipHasSystemsAbility)
            {
                GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartSystemsPhase);
                (subphase as NotificationSubPhase).TextToShow = "Systems";
                subphase.Start();
            }
            else
            {
                StartSystemsPhase();
            }
        }
Exemplo n.º 9
0
        public override void NextPhase()
        {
            Selection.DeselectAllShips();

            if (!DebugManager.NoCinematicCamera)
            {
                CameraScript.RestoreCamera();
            }

            if (Phases.Events.HasOnEndPhaseStartEvents)
            {
                GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartEndPhase);
                (subphase as NotificationSubPhase).TextToShow = "End";
                subphase.Start();
            }
            else
            {
                StartEndPhase();
            }
        }
Exemplo n.º 10
0
    // TEMPORARY SUBPHASES

    public static void StartTemporarySubPhaseOld(string name, System.Type subPhaseType, Action callBack = null)
    {
        GenericSubPhase subphase = StartTemporarySubPhaseNew(name, subPhaseType, callBack);

        subphase.Start();
    }