Exemple #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);
        }
Exemple #2
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);
        }