Exemplo n.º 1
0
        public override SupportAtack GetResultData(FormationDatas formation, BattleCommandParams cParam)
        {
            SupportAtack       supportAtack       = new SupportAtack();
            BattleSupportKinds battleSupportKinds = Init(ref supportAtack.Undressing_Flag);

            if (battleSupportKinds == BattleSupportKinds.None)
            {
                return(null);
            }
            supportAtack.Deck_Id     = supportDeck.Rid;
            supportAtack.SupportType = battleSupportKinds;
            switch (battleSupportKinds)
            {
            case BattleSupportKinds.AirAtack:
                using (Exec_SupportAirBattle exec_SupportAirBattle = new Exec_SupportAirBattle(F_Data, F_SubInfo, E_Data, E_SubInfo, practiceFlag))
                {
                    supportAtack.AirBattle = exec_SupportAirBattle.GetResultData(formation, cParam);
                }
                if (supportAtack.AirBattle == null)
                {
                    return(null);
                }
                break;

            case BattleSupportKinds.Hougeki:
                using (Exec_SupportHougeki exec_SupportHougeki = new Exec_SupportHougeki(F_Data, F_SubInfo, E_Data, E_SubInfo, practiceFlag))
                {
                    supportAtack.Hourai = exec_SupportHougeki.GetResultData <Support_HouRai>(formation);
                }
                if (supportAtack.Hourai == null)
                {
                    return(null);
                }
                break;

            case BattleSupportKinds.Raigeki:
                using (Exec_SupportRaigeki exec_SupportRaigeki = new Exec_SupportRaigeki(F_Data, F_SubInfo, E_Data, E_SubInfo, practiceFlag))
                {
                    supportAtack.Hourai = exec_SupportRaigeki.GetResultData <Support_HouRai>(formation);
                }
                if (supportAtack.Hourai == null)
                {
                    return(null);
                }
                break;
            }
            supportDeck.ChangeSupported();
            return(supportAtack);
        }
Exemplo n.º 2
0
        public override SupportAtack GetResultData(FormationDatas formation, BattleCommandParams cParam)
        {
            SupportAtack       supportAtack       = new SupportAtack();
            BattleSupportKinds battleSupportKinds = this.Init(ref supportAtack.Undressing_Flag);

            if (battleSupportKinds == BattleSupportKinds.None)
            {
                return(null);
            }
            supportAtack.Deck_Id     = this.supportDeck.Rid;
            supportAtack.SupportType = battleSupportKinds;
            if (battleSupportKinds == BattleSupportKinds.AirAtack)
            {
                using (Exec_SupportAirBattle exec_SupportAirBattle = new Exec_SupportAirBattle(this.F_Data, this.F_SubInfo, this.E_Data, this.E_SubInfo, this.practiceFlag))
                {
                    supportAtack.AirBattle = exec_SupportAirBattle.GetResultData(formation, cParam);
                }
                if (supportAtack.AirBattle == null)
                {
                    return(null);
                }
            }
            else if (battleSupportKinds == BattleSupportKinds.Hougeki)
            {
                using (Exec_SupportHougeki exec_SupportHougeki = new Exec_SupportHougeki(this.F_Data, this.F_SubInfo, this.E_Data, this.E_SubInfo, this.practiceFlag))
                {
                    supportAtack.Hourai = exec_SupportHougeki.GetResultData <Support_HouRai>(formation);
                }
                if (supportAtack.Hourai == null)
                {
                    return(null);
                }
            }
            else if (battleSupportKinds == BattleSupportKinds.Raigeki)
            {
                using (Exec_SupportRaigeki exec_SupportRaigeki = new Exec_SupportRaigeki(this.F_Data, this.F_SubInfo, this.E_Data, this.E_SubInfo, this.practiceFlag))
                {
                    supportAtack.Hourai = exec_SupportRaigeki.GetResultData <Support_HouRai>(formation);
                }
                if (supportAtack.Hourai == null)
                {
                    return(null);
                }
            }
            this.supportDeck.ChangeSupported();
            return(supportAtack);
        }