Example #1
0
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            BaseAirAttack  = new PhaseBaseAirAttack(this, "基地航空隊攻撃");
            AirBattle      = new PhaseAirBattle(this, "航空戦");
            Support        = new PhaseSupport(this, "支援攻撃");
            OpeningASW     = new PhaseOpeningASW(this, "先制対潜", true);
            OpeningTorpedo = new PhaseTorpedo(this, "先制雷撃", 0);
            Shelling1      = new PhaseShelling(this, "第一次砲撃戦", 1, "1", false, false);
            Shelling2      = new PhaseShelling(this, "第二次砲撃戦", 2, "2", true, true);
            Torpedo        = new PhaseTorpedo(this, "雷撃戦", 3);
            Shelling3      = new PhaseShelling(this, "第三次砲撃戦", 4, "3", false, false);


            BaseAirAttack.EmulateBattle(_resultHPs, _attackDamages);
            AirBattle.EmulateBattle(_resultHPs, _attackDamages);
            Support.EmulateBattle(_resultHPs, _attackDamages);
            OpeningASW.EmulateBattle(_resultHPs, _attackDamages);
            OpeningTorpedo.EmulateBattle(_resultHPs, _attackDamages);
            Shelling1.EmulateBattle(_resultHPs, _attackDamages);
            Shelling2.EmulateBattle(_resultHPs, _attackDamages);
            Torpedo.EmulateBattle(_resultHPs, _attackDamages);
            Shelling3.EmulateBattle(_resultHPs, _attackDamages);
        }
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            NightInitial    = new PhaseNightInitial(this, "夜戦開始", false);
            FriendlySupport = new PhaseFriendlySupport(this, "友軍艦隊援護");
            NightSupport    = new PhaseSupport(this, "夜間支援攻撃", true);
            NightBattle     = new PhaseNightBattle(this, "第一次夜戦", 1);
            NightBattle2    = new PhaseNightBattle(this, "第二次夜戦", 2);


            if (NextToDay)
            {
                JetBaseAirAttack = new PhaseJetBaseAirAttack(this, "噴式基地航空隊攻撃");
                JetAirBattle     = new PhaseJetAirBattle(this, "噴式航空戦");
                BaseAirAttack    = new PhaseBaseAirAttack(this, "基地航空隊攻撃");
                Support          = new PhaseSupport(this, "支援攻撃");
                AirBattle        = new PhaseAirBattle(this, "航空戦");
                OpeningASW       = new PhaseOpeningASW(this, "先制対潜");
                OpeningTorpedo   = new PhaseTorpedo(this, "先制雷撃", 0);
                Shelling1        = new PhaseShelling(this, "第一次砲撃戦", 1, "1");
                Shelling2        = new PhaseShelling(this, "第二次砲撃戦", 2, "2");
                Torpedo          = new PhaseTorpedo(this, "雷撃戦", 3);
            }

            foreach (var phase in GetPhases())
            {
                phase.EmulateBattle(_resultHPs, _attackDamages);
            }
        }
Example #3
0
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            BaseAirAttack  = new PhaseBaseAirAttack(this);
            AirBattle      = new PhaseAirBattle(this);
            Support        = new PhaseSupport(this);
            OpeningASW     = new PhaseOpeningASW(this, false);
            OpeningTorpedo = new PhaseTorpedo(this, 0);
            Shelling1      = new PhaseShelling(this, 1, "1", false);
            Shelling2      = new PhaseShelling(this, 2, "2", false);
            Shelling3      = new PhaseShelling(this, 3, "3", false);
            Torpedo        = new PhaseTorpedo(this, 4);


            BaseAirAttack.EmulateBattle(_resultHPs, _attackDamages);
            AirBattle.EmulateBattle(_resultHPs, _attackDamages);
            Support.EmulateBattle(_resultHPs, _attackDamages);
            OpeningASW.EmulateBattle(_resultHPs, _attackDamages);
            OpeningTorpedo.EmulateBattle(_resultHPs, _attackDamages);
            Shelling1.EmulateBattle(_resultHPs, _attackDamages);
            Shelling2.EmulateBattle(_resultHPs, _attackDamages);
            Shelling3.EmulateBattle(_resultHPs, _attackDamages);
            Torpedo.EmulateBattle(_resultHPs, _attackDamages);
        }
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            NightSupport = new PhaseSupport(this, "夜间支援攻击", true);
            NightBattle  = new PhaseNightBattle(this, "第一次夜战", 1, false);
            NightBattle2 = new PhaseNightBattle(this, "第二次夜战", 2, false);


            if (NextToDay)
            {
                JetBaseAirAttack = new PhaseJetBaseAirAttack(this, "喷式基地航空队攻击");
                JetAirBattle     = new PhaseJetAirBattle(this, "喷式航空战");
                BaseAirAttack    = new PhaseBaseAirAttack(this, "基地航空队攻击");
                Support          = new PhaseSupport(this, "支援攻击");
                AirBattle        = new PhaseAirBattle(this, "航空战");
                OpeningASW       = new PhaseOpeningASW(this, "先制对潜");
                OpeningTorpedo   = new PhaseTorpedo(this, "开幕雷击", 0);
                Shelling1        = new PhaseShelling(this, "第一次炮击战", 1, "1");
                Shelling2        = new PhaseShelling(this, "第二次炮击战", 2, "2");
                Torpedo          = new PhaseTorpedo(this, "雷击战", 3);
            }

            foreach (var phase in GetPhases())
            {
                phase.EmulateBattle(_resultHPs, _attackDamages);
            }
        }
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            JetAirBattle   = new PhaseJetAirBattle(this, "噴式航空戦");
            AirBattle      = new PhaseAirBattle(this, "航空戦");
            OpeningASW     = new PhaseOpeningASW(this, "先制対潜");
            OpeningTorpedo = new PhaseTorpedo(this, "先制雷撃", 0);
            Shelling1      = new PhaseShelling(this, "第一次砲撃戦", 1, "1");
            Shelling2      = new PhaseShelling(this, "第二次砲撃戦", 2, "2");
            Shelling3      = new PhaseShelling(this, "第三次砲撃戦", 3, "3");
            Torpedo        = new PhaseTorpedo(this, "雷撃戦", 4);


            foreach (var phase in GetPhases())
            {
                phase.EmulateBattle(_resultHPs, _attackDamages);
            }
        }
        public override void LoadFromResponse(string apiname, dynamic data)
        {
            base.LoadFromResponse(apiname, (object)data);

            JetBaseAirAttack    = new PhaseJetBaseAirAttack(this, "噴式基地航空隊攻撃");
            JetAirBattle        = new PhaseJetAirBattle(this, "噴式航空戦");
            BaseAirAttack       = new PhaseBaseAirAttack(this, "基地航空隊攻撃");
            FriendlySupportInfo = new PhaseFriendlySupportInfo(this, "友軍艦隊");
            FriendlyAirBattle   = new PhaseFriendlyAirBattle(this, "友軍支援航空攻撃");
            AirBattle           = new PhaseAirBattle(this, "航空戦");
            Support             = new PhaseSupport(this, "支援攻撃");
            OpeningASW          = new PhaseOpeningASW(this, "先制対潜");
            OpeningTorpedo      = new PhaseTorpedo(this, "先制雷撃", 0);
            Shelling1           = new PhaseShelling(this, "第一次砲撃戦", 1, "1");
            Torpedo             = new PhaseTorpedo(this, "雷撃戦", 2);
            Shelling2           = new PhaseShelling(this, "第二次砲撃戦", 3, "2");
            Shelling3           = new PhaseShelling(this, "第三次砲撃戦", 4, "3");

            foreach (var phase in GetPhases())
            {
                phase.EmulateBattle(_resultHPs, _attackDamages);
            }
        }