public override string GetBattleDetail(int index) { var sb = new StringBuilder(); string baseair = BaseAirAttack.GetBattleDetail(index); string airbattle1 = AirBattle.GetBattleDetail(index); string support = Support.GetBattleDetail(index); string airbattle2 = AirBattle2.GetBattleDetail(index); if (baseair != null) { sb.AppendLine("《基地航空隊攻撃》").Append(baseair); } if (airbattle1 != null) { sb.AppendLine("《第一次航空戦》").Append(airbattle1); } if (support != null) { sb.AppendLine("《支援攻撃》").Append(support); } if (airbattle2 != null) { sb.AppendLine("《第二次航空戦》").Append(airbattle2); } return(sb.ToString()); }
public override string GetBattleDetail(int index) { var sb = new StringBuilder(); string baseair = BaseAirAttack.GetBattleDetail(index); string airbattle = AirBattle.GetBattleDetail(index); string support = Support.GetBattleDetail(index); string asw = OpeningASW.GetBattleDetail(index); string openingTorpedo = OpeningTorpedo.GetBattleDetail(index); string shelling1 = Shelling1.GetBattleDetail(index); string shelling2 = Shelling2.GetBattleDetail(index); string shelling3 = Shelling3.GetBattleDetail(index); string torpedo = Torpedo.GetBattleDetail(index); if (baseair != null) { sb.AppendLine("《基地航空隊攻撃》").Append(baseair); } if (airbattle != null) { sb.AppendLine("《航空戦》").Append(airbattle); } if (support != null) { sb.AppendLine("《支援攻撃》").Append(support); } if (asw != null) { sb.AppendLine("《開幕対潜》").Append(asw); } if (openingTorpedo != null) { sb.AppendLine("《開幕雷撃》").Append(openingTorpedo); } if (shelling1 != null) { sb.AppendLine("《第一次砲撃戦》").Append(shelling1); } if (shelling2 != null) { sb.AppendLine("《第二次砲撃戦》").Append(shelling2); } if (shelling3 != null) { sb.AppendLine("《第三次砲撃戦》").Append(shelling3); } if (torpedo != null) { sb.AppendLine("《雷撃戦》").Append(torpedo); } return(sb.ToString()); }
public override string GetBattleDetail(int index) { var sb = new StringBuilder(); string baseair = BaseAirAttack.GetBattleDetail(index); string airbattle = AirBattle.GetBattleDetail(index); if (baseair != null) { sb.AppendLine("《基地航空隊攻撃》").Append(baseair); } if (airbattle != null) { sb.AppendLine("《航空戦》").Append(airbattle); } return(sb.ToString()); }
public KoukuuModel(List <ShipModel_BattleAll> ships_f, List <ShipModel_BattleAll> ships_e, AirBattle data) : base(ships_f, ships_e, data) { _attackers_f = new List <ShipModel_Attacker>(); int j; for (j = 0; j < _data.F_PlaneFrom.Count; j++) { ShipModel_BattleAll shipModel_BattleAll = _ships_f.Find((ShipModel_BattleAll ship) => ship != null && ship.TmpId == _data.F_PlaneFrom[j]); if (shipModel_BattleAll != null) { _attackers_f.Add(shipModel_BattleAll.__CreateAttacker__()); } } _attackers_e = new List <ShipModel_Attacker>(); int i; for (i = 0; i < _data.E_PlaneFrom.Count; i++) { ShipModel_BattleAll shipModel_BattleAll2 = _ships_e.Find((ShipModel_BattleAll ship) => ship != null && ship.TmpId == _data.E_PlaneFrom[i]); if (shipModel_BattleAll2 != null) { _attackers_e.Add(shipModel_BattleAll2.__CreateAttacker__()); } } _Initialize(); }
public KoukuuModelBase(List <ShipModel_BattleAll> ships_f, List <ShipModel_BattleAll> ships_e, AirBattle data) { _ships_f = ships_f; _ships_e = ships_e; _data = data; }
public KoukuuModel(List <ShipModel_BattleAll> ships_f, List <ShipModel_BattleAll> ships_e, AirBattle data) : base(ships_f, ships_e, data) { this._attackers_f = new List <ShipModel_Attacker>(); int j; for (j = 0; j < this._data.F_PlaneFrom.get_Count(); j++) { ShipModel_BattleAll shipModel_BattleAll = this._ships_f.Find((ShipModel_BattleAll ship) => ship != null && ship.TmpId == this._data.F_PlaneFrom.get_Item(j)); if (shipModel_BattleAll != null) { this._attackers_f.Add(shipModel_BattleAll.__CreateAttacker__()); } } this._attackers_e = new List <ShipModel_Attacker>(); int i; for (i = 0; i < this._data.E_PlaneFrom.get_Count(); i++) { ShipModel_BattleAll shipModel_BattleAll2 = this._ships_e.Find((ShipModel_BattleAll ship) => ship != null && ship.TmpId == this._data.E_PlaneFrom.get_Item(i)); if (shipModel_BattleAll2 != null) { this._attackers_e.Add(shipModel_BattleAll2.__CreateAttacker__()); } } base._Initialize(); }