23 通用规则的补充转换

Posted tysk

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了23 通用规则的补充转换相关的知识,希望对你有一定的参考价值。

最近在做wc4编辑器中想到一个问题,为什么不根据规则,自动生成类,然后再使用这个类呢...

然后我感觉emmm,项目又要大改了.....

然后花了一天时间磨了出来.

规则文件:

技术图片
<Files  game="wc4" fileType="btl" ifET="true">
<bm0 id="bm0" name="masterData" ifCycle="false"  Count="one" remark="主数据 128" >
    <bm id="bm0_1" size="8" name="biBtlVersion"  remark="btl版本" type="Integer" function="no" defaul="1" />
    <bm id="bm0_2" size="8" name="biMapSource" remark="地图序号" type="Integer" function="no" defaul="0" />
    <bm id="bm0_3" size="8" name="biMapCutx" remark="x" type="Integer" function="no" defaul="0" />
    <bm id="bm0_4" size="8" name="biMapCuty" remark="y" type="Integer" function="no" defaul="0" />
    <bm id="bm0_5" size="8" name="biMapx" remark="w" type="Integer" function="mapW" defaul="0" />
    <bm id="bm0_6" size="8" name="biMapy" remark="h" type="Integer" function="mapH" defaul="0" />
    <bm id="bm0_7" size="8" name="biLegionNum" remark="军团总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_8" size="8" name="biBuildingNum" remark="建筑总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_9" size="8" name="biUnitsNum" remark="单位总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_10" size="8" name="biMovingNum" remark="方案总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_11" size="8" name="biEventsNum" remark="事件总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_12" size="8" name="biWeatherNum" remark="天气总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_13" size="8" name="biTask" remark="胜利条件" type="Integer" function="no" defaul="0" />00进攻 01全灭 02防守 03积攒物资
    <bm id="bm0_14" size="8" name="biVictoryRound" remark="胜利回合" type="Integer" function="no" defaul="40" />
    <bm id="bm0_15" size="8" name="biGreatVictoryRound" remark="重大胜利回合" type="Integer" function="no" defaul="30" /> 三星回合 02防守中指红圈个数(?)
    <bm id="bm0_16" size="8" name="biSummonSoldiersNum" remark="援军总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_17" size="8" name="biAirportAirstrikesNum" remark="空袭总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_18" size="8" name="biEntranceA" remark="放置位甲" type="Integer" function="no" defaul="0" />
    <bm id="bm0_19" size="8" name="biEntranceB" remark="放置位乙" type="Integer" function="no" defaul="0" />
    <bm id="bm0_20" size="8" name="biFlagNum" remark="国家首都" type="Integer" function="no" defaul="0" />
    <bm id="bm0_21" size="8" name="biUnknown20" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm0_22" size="8" name="biUnknown21" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm0_23" size="8" name="biTerrainsNum" remark="地块总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_24" size="8" name="biMoneyNeeded" remark="积攒金钱" type="Integer" function="no" defaul="0" />
    <bm id="bm0_25" size="8" name="biIndustryNeeded" remark="积攒工业" type="Integer" function="no" defaul="0" />
    <bm id="bm0_26" size="8" name="biTechNeeded" remark="积攒科技" type="Integer" function="no" defaul="0" />
    <bm id="bm0_27" size="8" name="biLandminesNum" remark="地雷数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_28" size="8" name="biUnknown27" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm0_29" size="8" name="biStreatgyNum" remark="战略总数" type="Integer" function="no" defaul="0" />
    <bm id="bm0_30" size="8" name="biUnknown29" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm0_31" size="8" name="biUnknown30" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm0_32" size="8" name="biNationalAirstrikesNum" remark="空中支援" type="Integer" function="no" defaul="0" />
    
    </bm0>
    <bm1 id="bm1" name="legionData" ifCycle="true"  Count="bm0_7" remark="军团 300" >
    <bm id="bm1_1" size="8" name="blId"  remark="军团id" type="Integer" function="no" defaul="0" />
    <bm id="bm1_2" size="8" name="blCountry" remark="国家id" type="Integer" function="no" defaul="0" />
    <bm id="bm1_3" size="8" name="blMoney" remark="金钱" type="Integer" function="no" defaul="0" />
    <bm id="bm1_4" size="8" name="blIndustry" remark="工业" type="Integer" function="no" defaul="0" />
    <bm id="bm1_5" size="8" name="blTech" remark="科技" type="Integer" function="no" defaul="0" />
    <bm id="bm1_6" size="8" name="blControl" remark="控制" type="Integer" function="no" defaul="0" /> 玩家是0
    <bm id="bm1_7" size="8" name="blCamp" remark="阵营" type="Integer" function="no" defaul="0" />
    <bm id="bm1_8" size="8" name="blDefeat" remark="胜利条件" type="Integer" function="no" defaul="0" />
    <bm id="bm1_9" size="8" name="blMoneyRate" remark="税率加成" type="Single" function="no" defaul="0" />
    <bm id="bm1_10" size="8" name="blHpRate" remark="兵种加成" type="Single" function="no" defaul="0" />
    <bm id="bm1_11" size="2" name="r" remark="颜色r" type="Byte" function="no" defaul="0" />
    <bm id="bm1_12" size="2" name="g" remark="颜色g" type="Byte" function="no" defaul="0" />
    <bm id="bm1_13" size="2" name="b" remark="颜色b" type="Byte" function="no" defaul="0" />
    <bm id="bm1_14" size="2" name="a" remark="颜色a" type="Byte" function="no" defaul="255" />
    <bm id="bm1_15" size="8" name="blNuclearNum1" remark="原子弹" type="Integer" function="no" defaul="0" />
    <bm id="bm1_16" size="8" name="blNuclearNum2" remark="氢弹" type="Integer" function="no" defaul="0" />
    <bm id="bm1_17" size="8" name="blNuclearNum3" remark="三相弹" type="Integer" function="no" defaul="0" />
    <bm id="bm1_18" size="8" name="blNuclearNum4" remark="反物质弹" type="Integer" function="no" defaul="0" />
    <bm id="bm1_19" size="8" name="blUnknown71" remark="机动" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_20" size="8" name="blUnknown72" remark="步枪" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_21" size="8" name="blUnknown73" remark="迷彩" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_22" size="8" name="blUnknown74" remark="工兵" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_23" size="8" name="blUnknown75" remark="手雷" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_24" size="8" name="blUnknown76" remark="迫击炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_25" size="8" name="blUnknown77" remark="行军" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_26" size="8" name="blUnknown78" remark="防弹衣" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_27" size="8" name="blUnknown79" remark="装甲" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_28" size="8" name="blUnknown80" remark="主炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_29" size="8" name="blUnknown81" remark="车体" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_30" size="8" name="blUnknown82" remark="引擎" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_31" size="8" name="blUnknown83" remark="机枪" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_32" size="8" name="blUnknown84" remark="突袭" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_33" size="8" name="blUnknown85" remark="防空" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_34" size="8" name="blUnknown86" remark="强化车体" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_35" size="8" name="blUnknown87" remark="炮击" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_36" size="8" name="blUnknown88" remark="火箭弹" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_37" size="8" name="blUnknown89" remark="牵引" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_38" size="8" name="blUnknown90" remark="装甲" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_39" size="8" name="blUnknown91" remark="火力" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_40" size="8" name="blUnknown92" remark="火箭" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_41" size="8" name="blUnknown93" remark="伪装" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_42" size="8" name="blUnknown94" remark="船体" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_43" size="8" name="blUnknown95" remark="推进" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_44" size="8" name="blUnknown96" remark="装甲" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_45" size="8" name="blUnknown97" remark="武器" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_46" size="8" name="blUnknown98" remark="舰炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_47" size="8" name="blUnknown99" remark="鱼雷" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_48" size="8" name="blUnknown100" remark="扫雷" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_49" size="8" name="blUnknown101" remark="防空" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_50" size="8" name="blUnknown102" remark="现代舰艇" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_51" size="8" name="blUnknown103" remark="航空燃油" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_52" size="8" name="blUnknown104" remark="航空发动机" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_53" size="8" name="blUnknown105" remark="航空炸弹" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_54" size="8" name="blUnknown106" remark="空袭" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_55" size="8" name="blUnknown107" remark="轰炸" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_56" size="8" name="blUnknown108" remark="战略轰炸" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_57" size="8" name="blUnknown109" remark="空降兵" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_58" size="8" name="blUnknown110" remark="喷气发动机" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_59" size="8" name="blUnknown111" remark="机枪堡" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_60" size="8" name="blUnknown112" remark="要塞炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_61" size="8" name="blUnknown113" remark="海岸炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_62" size="8" name="blUnknown114" remark="火箭发射器" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_63" size="8" name="blUnknown115" remark="工事" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_64" size="8" name="blUnknown116" remark="高射机枪" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_65" size="8" name="blUnknown117" remark="防空炮" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_66" size="8" name="blUnknown118" remark="防空导弹" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_67" size="8" name="blUnknown119" remark="雷达" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_68" size="8" name="blUnknown120" remark="弹头" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_69" size="8" name="blUnknown121" remark="火箭发动机" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_70" size="8" name="blUnknown122" remark="破防" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_71" size="8" name="blUnknown123" remark="核聚变" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_72" size="8" name="blUnknown124" remark="?" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_73" size="8" name="blUnknown125" remark="?" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_74" size="8" name="blUnknown126" remark="?" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_75" size="8" name="blUnknown127" remark="战略" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_76" size="8" name="blUnknown128" remark="科技等级" type="Integer" function="no" defaul="0"/>
    <bm id="bm1_77" size="8" name="blUnknown129" remark="?" type="?" function="no" defaul="00000000"/>
    <bm id="bm1_78" size="8" name="blUnknown130" remark="?" type="Integer" function="no" defaul="0"/>
    </bm1>
    <bm2 id="bm2" name="terrainData" ifCycle="bm0_2==0"  Count="sumGride" remark="地形 16" >
    <bm id="bm2_1" size="2" name="bmTerrain1Group"  remark="地块组1" type="Byte" function="no" defaul="0" />
    <bm id="bm2_2" size="2" name="bmTerrain1Id" remark="地块号1" type="Byte" function="no" defaul="0" />
    <bm id="bm2_3" size="2" name="bmTerrain1X" remark="x" type="Byte" function="no" defaul="0" />
    <bm id="bm2_4" size="2" name="bmTerrain1Y" remark="y" type="Byte" function="no" defaul="0" />
    <bm id="bm2_5" size="2" name="bmDoodad1Group" remark="装饰组1" type="Byte" function="no" defaul="0" />
    <bm id="bm2_6" size="2" name="bmDoodad1Id" remark="装饰号1" type="Byte" function="no" defaul="255" />
    <bm id="bm2_7" size="2" name="bmDoodad1X" remark="x" type="Byte" function="no" defaul="0" />
    <bm id="bm2_8" size="2" name="bmDoodad1Y" remark="y" type="Byte" function="no" defaul="0" />
    <bm id="bm2_9" size="2" name="bmDoodad2Group" remark="装饰组2" type="Byte" function="no" defaul="0" />
    <bm id="bm2_10" size="2" name="bmDoodad2Id" remark="装饰号2" type="Byte" function="no" defaul="255" />
    <bm id="bm2_11" size="2" name="bmDoodad2X" remark="x" type="Byte" function="no" defaul="0" />
    <bm id="bm2_12" size="2" name="bmDoodad2Y" remark="y" type="Byte" function="no" defaul="0" />
    <bm id="bm2_13" size="2" name="waterPass" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm2_14" size="2" name="landPass" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm2_15" size="2" name="bmUnknown14" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm2_16" size="2" name="bmUnknown15" remark="?" type="Byte" function="no" defaul="0" />
    </bm2>
    <bm3 id="bm3" name="regionData" ifCycle="true"  Count="bm0_23" remark="省规划 2" >
    <bm id="bm3_1" size="4" name="bpProvince"  remark="省区" type="Short" function="no" defaul="0" />
    </bm3>
    <bm4 id="bm4" name="belongData" ifCycle="true"  Count="bm0_23" remark="军团归属 1" >
    <bm id="bm4_1" size="2" name="bbBelong"  remark="id" type="Byte" function="id"/>
    </bm4>
    <bm5 id="bm5" name="buildData" ifCycle="true"  Count="bm0_8" remark="地块 32" >
    <bm id="bm5_1" size="4" name="buPosition"  remark="坐标" type="Short" function="no" defaul="0" />
    <bm id="bm5_2" size="4" name="buAreaid" remark="名称" type="Short" function="no" defaul="0" />
    <bm id="bm5_3" size="2" name="buType" remark="类型" type="Byte" function="no" defaul="0" />
    <bm id="bm5_4" size="2" name="buStyle" remark="外观 1↙2↘3↗4↖" type="Byte" function="no" defaul="0" />
    <bm id="bm5_5" size="2" name="buCityFeature" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_6" size="2" name="capital" remark="首都外观" type="Byte" function="no" defaul="0" />
    <bm id="bm5_7" size="4" name="buRewardType" remark="奖励类型(宝物或装备id)" type="Short" function="no" defaul="0" />
    <bm id="bm5_8" size="4" name="buRewardNum" remark="奖励数量" type="Short" function="no" defaul="0" />
    <bm id="bm5_9" size="2" name="buUnknown09" remark="轻视度" type="Byte" function="no" defaul="0" />
    <bm id="bm5_10" size="2" name="buVictoryPoint" remark="据点(0-2)" type="Byte" function="no" defaul="0" />
    <bm id="bm5_11" size="2" name="buEvent" remark="事件" type="Byte" function="no" defaul="0" />
    <bm id="bm5_12" size="2" name="buUnknown12" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_13" size="2" name="buUnknown13" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_14" size="2" name="buUnknown14" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_15" size="2" name="buUnknown15" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_16" size="2" name="buUnknown16" remark="运输船?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_17" size="2" name="buFireLevel" remark="火焰等级" type="Byte" function="no" defaul="0" />
    <bm id="bm5_18" size="2" name="buFireTime" remark="火焰时间" type="Byte" function="no" defaul="0" />
    <bm id="bm5_19" size="2" name="buAirDefense" remark="防空" type="Byte" function="no" defaul="0" />
    <bm id="bm5_20" size="2" name="buRadar" remark="防空雷达" type="Byte" function="no" defaul="0" />
    <bm id="bm5_21" size="2" name="buFactoryLv" remark="工业" type="Byte" function="no" defaul="0" />
    <bm id="bm5_22" size="2" name="buResearchLv" remark="科技" type="Byte" function="no" defaul="0" />
    <bm id="bm5_23" size="2" name="buHospitalLv" remark="医院" type="Byte" function="no" defaul="0" />
    <bm id="bm5_24" size="2" name="buAirportLv" remark="机场" type="Byte" function="no" defaul="0" />
    <bm id="bm5_25" size="2" name="buMissileLv" remark="导弹" type="Byte" function="no" defaul="0" />
    <bm id="bm5_26" size="2" name="buNuclearLv" remark="核弹" type="Byte" function="no" defaul="0" />
    <bm id="bm5_27" size="2" name="buUnknown27" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm5_28" size="2" name="buUnknown28" remark="?" type="Byte" function="no" defaul="0" />
    </bm5>
    <bm6 id="bm6" name="armyData" ifCycle="true"  Count="bm0_9" remark="兵种 48" >
    <bm id="bm6_1" size="4" name="baPosition"  remark="坐标" type="Short" function="no" defaul="0" />1
    <bm id="bm6_2" size="2" name="baType" remark="兵种" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_3" size="2" name="baLevel" remark="部队等级" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_4" size="2" name="baNum" remark="编队数" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_5" size="2" name="baFace" remark="方向" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_6" size="2" name="baMobility" remark="移动力" type="Byte" function="no" defaul="0" />
    <bm id="bm6_7" size="2" name="baUnknown07" remark="运输船?" type="Byte" function="no" defaul="0" />
    <bm id="bm6_8" size="4" name="baArmyExp" remark="兵种经验" type="Short" function="no" defaul="0" />
    <bm id="bm6_9" size="4" name="baHpPercent" remark="血量加成" type="Short" function="no" defaul="0" />1
    <bm id="bm6_10" size="4" name="baHpNow" remark="当前血量" type="Short" function="no" defaul="0" />
    <bm id="bm6_11" size="4" name="baHpMax" remark="总血量" type="Short" function="no" defaul="0" />
    <bm id="bm6_12" size="4" name="baGeneralId" remark="将领编号" type="Short" function="no" defaul="0" />1
    <bm id="bm6_13" size="2" name="baGeneralLevel" remark="将领军衔" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_14" size="2" name="baGeneralColor" remark="将领品质" type="Byte" function="no" defaul="0" />1
    <bm id="bm6_15" size="2" name="baMedalId1" remark="勋章一" type="Byte" function="no" defaul="0" />
    <bm id="bm6_16" size="2" name="baMedalId2" remark="勋章二" type="Byte" function="no" defaul="0" />
    <bm id="bm6_17" size="2" name="baMedalId3" remark="勋章三" type="Byte" function="no" defaul="0" />
    <bm id="bm6_18" size="2" name="baSkillLevel1" remark="技能等级1" type="Byte" function="no" defaul="0" />
    <bm id="bm6_19" size="2" name="baSkillLevel2" remark="技能等级2" type="Byte" function="no" defaul="0" />
    <bm id="bm6_20" size="2" name="baSkillLevel3" remark="技能等级3" type="Byte" function="no" defaul="0" />
    <bm id="bm6_21" size="2" name="baSkillLevel4" remark="技能等级4" type="Byte" function="no" defaul="0" />
    <bm id="bm6_22" size="2" name="baSkillLevel5" remark="技能等级5" type="Byte" function="no" defaul="0" />
    <bm id="bm6_23" size="2" name="baVP" remark="VP" type="Byte" function="no" defaul="0" />
    <bm id="bm6_24" size="2" name="baAI" remark="AI 初始行动策略 2行动 3待机 bm6_28为待机回合" type="Byte" function="no" defaul="0" />
    <bm id="bm6_25" size="2" name="baUnknown25" remark="运输船" type="Byte" function="no" defaul="0 1? 2禁止下海" />
    <bm id="bm6_26" size="2" name="baUnknown26" remark="轻视度" type="Byte" function="no" defaul="0" />
    <bm id="bm6_27" size="4" name="baMovePoint" remark="移动目标" type="Short" function="no" defaul="0" />
    <bm id="bm6_28" size="2" name="baUnknown28" remark="行为" type="Byte" function="no" defaul="0" />
    <bm id="bm6_29" size="2" name="baUnknown29" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm6_30" size="8" name="baZeros" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm6_31" size="2" name="baMorale" remark="士气" type="Byte" function="no" defaul="0" />
    <bm id="bm6_32" size="2" name="baMoraleTime" remark="士气时间" type="Byte" function="no" defaul="0" />
    <bm id="bm6_33" size="2" name="baEvent" remark="事件" type="Byte" function="no" defaul="0" />
    <bm id="bm6_34" size="2" name="baUnknown34" remark="?" type="Byte" function="no" defaul="0" />
    <bm id="bm6_35" size="8" name="baTrigger" remark="二次行动策略  2行动 3待机" type="Integer" function="no" defaul="0" />
    </bm6>
    <bm7 id="bm7" name="trapData" ifCycle="true"  Count="bm0_27" remark="陷阱 12" >
    <bm id="bm7_1" size="4" name="bmiPosition"  remark="地块坐标" type="Short" function="no" defaul="0" />
    <bm id="bm7_2" size="4" name="bmiLegion" remark="所属军团" type="Short" function="no" defaul="0" />
    <bm id="bm7_3" size="4" name="bmiMinesLv" remark="陷阱等级" type="Short" function="no" defaul="0" />
    <bm id="bm7_4" size="4" name="bmiMinesHp" remark="陷阱血量" type="Short" function="no" defaul="0" />
    <bm id="bm7_5" size="8" name="bmiZeros" remark="?" type="Integer" function="no" defaul="0" />
    </bm7>
    <bm8 id="bm8" name="planData" ifCycle="true"  Count="bm0_10" remark="方案 16" >
    <bm id="bm8_1" size="8" name="bhId"  remark="id" type="Integer" function="no" defaul="0" />
    <bm id="bm8_2" size="8" name="bhType" remark="类型" type="Integer" function="no" defaul="0" />
    <bm id="bm8_3" size="8" name="bhTime" remark="时间" type="Integer" function="no" defaul="0" />
    <bm id="bm8_4" size="8" name="bhValue" remark="目标值" type="Integer" function="no" defaul="0" />
    </bm8>
    <bm9 id="bm9" name="weatherData" ifCycle="true"  Count="bm0_12" remark="天气  16" >
    <bm id="bm9_1" size="8" name="bwId"  remark="天气编号"  type="Integer" function="no" defaul="0" />
    <bm id="bm9_2" size="8" name="bwUnknown02" remark="天气类型 (01下雨  02暴雨  03下雪)" type="Integer" function="no" defaul="0" />
    <bm id="bm9_3" size="8" name="bwStartTime" remark="触发回合" type="Integer" function="no" defaul="0" />
    <bm id="bm9_4" size="8" name="bwLength" remark="持续回合" type="Integer" function="no" defaul="0" />
    </bm9>
    <bm10 id="bm10" name="eventData" ifCycle="true"  Count="bm0_11" remark="事件 44" >
    <bm id="bm10_1" size="8" name="beId"  remark="序号 1开始" type="Integer" function="no" defaul="0" />
    <bm id="bm10_2" size="8" name="beNextid" remark="伴生ID" type="Integer" function="no" defaul="0" />
    <bm id="bm10_3" size="8" name="beTrigger" remark="触发条件,00建筑触发01部队触发02回合触发04连带触发" type="Integer" function="no" defaul="0" />
    <bm id="bm10_4" size="8" name="beType" remark="类型,00士气上升01下降02大降03混乱04无效果07阵营变化" type="Integer" function="no" defaul="0" />
    <bm id="bm10_5" size="8" name="beUnknown05" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm10_6" size="8" name="beLegion" remark="军团(顺序)" type="Integer" function="no" defaul="0" />
    <bm id="bm10_7" size="8" name="beValue" remark="若触发事件07,则这里填变换后的阵营" type="Integer" function="no" defaul="0" />
    <bm id="bm10_8" size="8" name="beZero" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm10_9" size="8" name="beTime" remark="触发回合" type="Integer" function="no" defaul="0" />
    <bm id="bm10_10" size="8" name="beDialogue" remark="对话代码" type="Integer" function="no" defaul="0" />
    <bm id="bm10_11" size="8" name="beEnding" remark="?" type="?" function="no" defaul="00cccccc" />
    </bm10>
    <bm11 id="bm11" name="reliefData" ifCycle="true"  Count="bm0_16" remark="援军 80" >
    <bm id="bm11_1" size="8" name="bsaPosition"  remark="坐标" type="Integer" function="no" defaul="0" />
    <bm id="bm11_2" size="8" name="bsaType" remark="兵种" type="Integer" function="no" defaul="0" />
    <bm id="bm11_3" size="8" name="bsaLevel" remark="等级" type="Integer" function="no" defaul="0" />
    <bm id="bm11_4" size="8" name="bsanum" remark="编制" type="Integer" function="no" defaul="0" />
    <bm id="bm11_5" size="8" name="bsaShip" remark="运输船" type="Integer" function="no" defaul="0" />
    <bm id="bm11_6" size="8" name="bsaFace" remark="朝向" type="Integer" function="no" defaul="0" />
    <bm id="bm11_7" size="8" name="bsaUnknown07" remark="?" type="Integer" function="no" defaul="0" />
    <bm id="bm11_8" size="8" name="bsaGeneralId" remark="将领" type="Integer" function="no" defaul="0" />
    <bm id="bm11_9" size="8" name="bsaGeneralLevel" remark="军衔" type="Integer" function="no" defaul="0" />
    <bm id="bm11_10" size="8" name="bsaGeneralColor" remark="爵位" type="Integer" function="no" defaul="0" />
    <bm id="bm11_11" size="8" name="bsaSkillLevel1" remark="技能等级1" type="Integer" function="no" defaul="0" />
    <bm id="bm11_12" size="8" name="bsaSkillLevel2" remark="技能等级2" type="Integer" function="no" defaul="0" />
    <bm id="bm11_13" size="8" name="bsaSkillLevel3" remark="技能等级3" type="Integer" function="no" defaul="0" />
    <bm id="bm11_14" size="8" name="bsaSkillLevel4" remark="技能等级4" type="Integer" function="no" defaul="0" />
    <bm id="bm11_15" size="8" name="bsaSkillLevel5" remark="技能等级5" type="Integer" function="no" defaul="0" />
    <bm id="bm11_16" size="8" name="bsaMedalId1" remark="勋章一" type="Integer" function="no" defaul="0" />
    <bm id="bm11_17" size="8" name="bsaMedalId2" remark="勋章二" type="Integer" function="no" defaul="0" />
    <bm id="bm11_18" size="8" name="bsaMedalId3" remark="勋章三" type="Integer" function="no" defaul="0" />
    <bm id="bm11_19" size="8" name="bsaLegion" remark="军团" type="Integer" function="no" defaul="0" />
    <bm id="bm11_20" size="8" name="bsaTime" remark="回合" type="Integer" function="no" defaul="0" />
    </bm11>
    <bm12 id="bm12" name="airData" ifCycle="true"  Count="bm0_17" remark="空袭 20" >
    <bm id="bm12_1" size="8" name="baaPosition"  remark="坐标" type="Integer" function="no" defaul="0" />
    <bm id="bm12_2" size="8" name="baaType" remark="兵种" type="Integer" function="no" defaul="0" />
    <bm id="bm12_3" size="8" name="baaNuclear" remark="核弹" type="Integer" function="no" defaul="0" />
    <bm id="bm12_4" size="8" name="baaLegion" remark="军团" type="Integer" function="no" defaul="0" />
    <bm id="bm12_5" size="8" name="baaTime" remark="回合" type="Integer" function="no" defaul="0" />
    </bm12>
    <bm13 id="bm13" name="placeAData" ifCycle="true"  Count="bm0_18" remark="兵种放置A 8" >
    <bm id="bm13_1" size="4" name="bsPosition"  remark="坐标" type="Short" function="no" defaul="65535" />
    <bm id="bm13_2" size="4" name="bsUnknown02" remark="?" type="Short" function="no" defaul="0" />
    <bm id="bm13_3" size="2" name="bsFace" remark="方向" type="Byte" function="no" defaul="0" />
    <bm id="bm13_4" size="2" name="bsId" remark="序号" type="Byte" function="no" defaul="0" />
    <bm id="bm13_5" size="2" name="bsShip" remark="运输船" type="Byte" function="no" defaul="0" />
    <bm id="bm13_6" size="2" name="bsUnknown06" remark="?" type="Byte" function="no" defaul="0" />
    </bm13>
    <bm14 id="bm14" name="placeBData" ifCycle="true"  Count="bm0_19" remark="兵种放置B 8" >
    <bm id="bm14_1" size="4" name="bsPosition"  remark="坐标" type="Short" function="no" defaul="0" />
    <bm id="bm14_2" size="4" name="bsUnknown02" remark="?" type="Short" function="no" defaul="0" />
    <bm id="bm14_3" size="2" name="bsFace" remark="方向" type="Byte" function="no" defaul="0" />
    <bm id="bm14_4" size="2" name="bsId" remark="序号" type="Byte" function="no" defaul="0" />
    <bm id="bm14_5" size="2" name="bsShip" remark="运输船" type="Byte" function="no" defaul="0" />
    <bm id="bm14_6" size="2" name="bsUnknown06" remark="?" type="Byte" function="no" defaul="0" />
    </bm14>
     <bm15 id="bm15" name="capitalData" ifCycle="true"  Count="bm0_20" remark="首都 4" >
    <bm id="bm15_1" size="4" name="bfPosition"  remark="地块坐标" type="Short" function="no" defaul="0" />
    <bm id="bm15_2" size="4" name="bfUnknown02" remark="?" type="Short" function="no" defaul="0" />
    </bm15>
    <bm16 id="bm16" name="strategicData" ifCycle="true"  Count="bm0_29" remark="战略建设 16" >
    <bm id="bm16_1" size="8" name="bstLegion"  remark="军团序号" type="Integer" function="no" defaul="0" />
    <bm id="bm16_2" size="8" name="bstUnknown02" remark="未知" type="Integer" function="no" defaul="0" />
    <bm id="bm16_3" size="8" name="bstTime" remark="回合" type="Integer" function="no" defaul="0" />
    <bm id="bm16_4" size="8" name="bstValue" remark="目标值" type="Integer" function="no" defaul="0" />
    </bm16>
    <bm17 id="bm17" name="airSData" ifCycle="true"  Count="bm0_32" remark="空中支援 16" >
    <bm id="bm17_1" size="8" name="bnaType"  remark="空军序号" type="Integer" function="no" defaul="21" />
    <bm id="bm17_2" size="8" name="bnaNuclear" remark="弹药类型" type="Integer" function="no" defaul="0" />
    <bm id="bm17_3" size="8" name="bnaLegion" remark="所属军团" type="Integer" function="no" defaul="1" />
    <bm id="bm17_4" size="8" name="bnaTime" remark="触发回合" type="Integer" function="no" defaul="599" />
    </bm17><!-- -->
</Files>
rule_wc4_btl.xml

方法:

技术图片
  1 //解析xml并在控制台打印相关创建数据
  2     
  3     public static void logClassInfoByRule(String rule, String name, boolean ifET) {
  4         name = ComUtil.UpperInitial(name);
  5         byte[] rsbt = null;
  6         BTLDAO btl = new BTLDAO();
  7         BtlModule0 bi;
  8         StringBuilder buf = new StringBuilder();
  9         String cutStr = "";
 10         int bufTag = 0;
 11         int cutSumCt = 1;//总循环次数
 12         int mapW = 0, mapH = 0, i, j, k;
 13         JSONObject row = null;
 14         List<DefRule> rs;
 15         String trans;
 16         { //重复读取所有基本信息
 17             String[] cutStrs = new String[] { "bm0", "bm1", "bm2", "bm3", "bm4", "bm5", "bm6", "bm7", "bm8", "bm9", "bm10", "bm11", "bm12", "bm13", "bm14", "bm15", "bm16", "bm17", "bm18", "bm19", "bm20" };
 18             String[] cutStrs2 = new String[] { "BtlModule0", "BtlModule1", "BtlModule2", "BtlModule3", "BtlModule4", "BtlModule5", "BtlModule6", "BtlModule7", "BtlModule8", "BtlModule9", "BtlModule10", "BtlModule11", "BtlModule12", "BtlModule13", "BtlModule14", "BtlModule15", "BtlModule16", "BtlModule17", "BtlModule18", "BtlModule19", "BtlModule20" };
 19             String uName, lName;
 20             
 21             System.out.println("public class " + name + " {");
 22             for (i = 0; i < cutStrs.length; i++) {
 23                 try {
 24                     row = getInfoByRootName(rule, cutStrs[i]);
 25                     if (row != null) {
 26                         rs = getDefRuleInfosByRow(row);
 27                         if (i == 0) {
 28                             System.out.println("public " + ComUtil.UpperInitial(row.getString("name")) + " " + ComUtil.LowerInitial(row.getString("name")) + ";");
 29                         } else {
 30                             System.out.println("public List<" + ComUtil.UpperInitial(row.getString("name")) + "> " + ComUtil.LowerInitial(row.getString("name")) + "s;");
 31                         }
 32                     }
 33                     
 34                 } catch (DocumentException e) {
 35                     e.printStackTrace();
 36                 }
 37             }
 38             
 39             /*
 40              * public Test(BTLDAO btl) { setMasterData(btl.getBm0()); }
 41              */
 42             System.out.println("public " + name + "( BTLDAO btl) {");
 43             
 44             for (i = 0; i < cutStrs.length; i++) {
 45                 try {
 46                     row = getInfoByRootName(rule, cutStrs[i]);
 47                     if (row != null) {
 48                         rs = getDefRuleInfosByRow(row);
 49                         System.out.println(ComUtil.getSetMethodName(row.getString("name")) + "(btl." + ComUtil.getGetMethodName(cutStrs[i]) + "());");
 50                     }
 51                     
 52                 } catch (DocumentException e) {
 53                     e.printStackTrace();
 54                 }
 55             }
 56             
 57             System.out.println(" }");
 58             
 59             for (i = 0; i < cutStrs.length; i++) {
 60                 try {
 61                     row = getInfoByRootName(rule, cutStrs[i]);
 62                     
 63                     if (row != null) {
 64                         uName = ComUtil.UpperInitial(row.getString("name"));
 65                         lName = ComUtil.LowerInitial(row.getString("name"));
 66                         rs = getDefRuleInfosByRow(row);
 67                         
 68                         //生成变量
 69                         /* */ System.out.println("public class " + ComUtil.UpperInitial(row.getString("name")) + " {");
 70                         for (j = 0; j < rs.size(); j++) {
 71                             String type = rs.get(j).getType().equals("?") ? "String" : rs.get(j).getType();
 72                             if (type.equals("String") || type.equals("?")) {
 73                                 type = "String";
 74                             } else if (type.equals("Single")) {
 75                                 type = "float";
 76                             } else {
 77                                 type = "Integer";
 78                             }
 79                             System.out.println("private " + type + " " + rs.get(j).getName() + ";");
 80                             
 81                             System.out.println("public " + type + " " + ComUtil.getGetMethodName(rs.get(j).getName()) + "(){ return " + rs.get(j).getName() + ";}");
 82                             System.out.println("public void " + ComUtil.getSetMethodName(rs.get(j).getName()) + "(" + type + " " + rs.get(j).getName() + "){ this." + rs.get(j).getName() + "=" + rs.get(j).getName() + ";}");
 83                         }
 84                         System.out.println(" }");
 85                         
 86                         /*
 87                          * private void setMasterData(BtlModule0 bm0) {
 88                          * this.masterData.biAirportAirstrikesNum=0; }
 89                          */
 90                         if (i == 0) {
 91                             
 92                             System.out.println("public void set" + uName + "(" + cutStrs2[i] + " " + cutStrs[i] + "){");
 93                             
 94                             System.out.println("if (" + lName + "==null){" + lName + "=new " + uName + "();}");
 95                             
 96                             for (j = 0; j < rs.size(); j++) {
 97                                 String type = rs.get(j).getType().equals("?") ? "String" : rs.get(j).getType();
 98                                 // type = type.equals("Single") ? "float" : type;
 99                                 
100                                 System.out.println(lName + "." + ComUtil.getSetMethodName(rs.get(j).getName()) + "(" + transValue(type, cutStrs[i] + "." + ComUtil.getGetMethodName(rs.get(j).getId()) + "()") + ");");
101                                 
102                                 // System.out.println("");
103                             }
104                             System.out.println(" }");
105                             
106                         } else {
107                             System.out.println("public void set" + uName + "(List<" + cutStrs2[i] + "> " + cutStrs[i] + "s){");
108                             
109                             System.out.println("if (" + lName + "s==null){" + lName + "s=new ArrayList<" + uName + ">();}else{this." + lName + "s.clear();" + "}");
110                             System.out.println("for(" + cutStrs2[i] + " " + cutStrs[i] + ":" + cutStrs[i] + "s) {");
111                             System.out.println(uName + " " + lName + "=new " + uName + "();");
112                             for (j = 0; j < rs.size(); j++) {
113                                 String type = rs.get(j).getType().equals("?") ? "String" : rs.get(j).getType();
114                                 // type = type.equals("Single") ? "float" : type;
115                                 
116                                 System.out.println(lName + "." + ComUtil.getSetMethodName(rs.get(j).getName()) + "(" + transValue(type, cutStrs[i] + "." + ComUtil.getGetMethodName(rs.get(j).getId()) + "()") + ");");
117                                 
118                                 // System.out.println("");
119                             }
120                             System.out.println("this." + lName + "s.add(" + lName + ");");
121                             System.out.println(" }");
122                             
123                             System.out.println(" }");
124                         }
125                         
126                         //bm转变量 TODO
127                         /* public get */
128                         
129                         //变量转bm TODO
130                         
131                     }
132                     
133                 } catch (DocumentException e) {
134                     // TODO Auto-generated catch block
135                     e.printStackTrace();
136                 }
137                 
138             }
139             
140             /*
141              * public BTLDAO getBTL() { BTLDAO btl=new BTLDAO(); initBm1(btl);
142              * 
143              * return btl; }
144              */
145             
146             System.out.println(" public BTLDAO getBTL() { BTLDAO btl=new BTLDAO();btl.init();");
147             for (i = 0; i < cutStrs.length; i++) {
148                 try {
149                     row = getInfoByRootName(rule, cutStrs[i]);
150                 } catch (DocumentException e) {
151                     // TODO Auto-generated catch block
152                     e.printStackTrace();
153                 }
154                 if (row != null) {
155                 System.out.println("init" + ComUtil.UpperInitial(cutStrs[i]) + "(btl);");
156                 }
157             }
158             System.out.println("  return btl;}");
159             
160             /*private void initBm1(BTLDAO btl){
161                 
162             }*/
163             for (i = 0; i < cutStrs.length; i++) {
164                 try {
165                     row = getInfoByRootName(rule, cutStrs[i]);
166                     if (row != null) {
167                         uName = ComUtil.UpperInitial(row.getString("name"));
168                         lName = ComUtil.LowerInitial(row.getString("name"));
169                         rs = getDefRuleInfosByRow(row);
170                 if(i==0) {
171                     System.out.println("private void init" + ComUtil.UpperInitial(cutStrs[i]) + "(BTLDAO btl){");
172                     /*private void initBm0(BTLDAO btl){
173                         btl.getBm0().setBm0_1("");
174                      }*/
175                     
176                     for (j = 0; j < rs.size(); j++) {
177                         System.out.println(" btl.get"+ComUtil.UpperInitial(cutStrs[i])+"().set"+ComUtil.UpperInitial(rs.get(j).getId())
178                         +"("+lName+"."+rs.get(j).getName()+"+"");");
179                      }
180                     System.out.println(" }");
181                 }else {
182                     System.out.println("private void init" + ComUtil.UpperInitial(cutStrs[i]) + "(BTLDAO btl){");
183                     /*private void initBm1(BTLDAO btl){
184                         for(LegionData legionData: legionDatas) {
185                             BtlModule1 bm1=new BtlModule1();
186                             bm1.setBm1_1(legionData.blUnknown129);
187                             btl.getBm1().add(bm1);
188                         }
189                      }*/
190                     
191                     System.out.println(" for("+uName+" "+lName+":"+lName+"s){");
192                     System.out.println(cutStrs2[i]+" "+cutStrs[i]+"=new "+cutStrs2[i]+"();" );
193                     for (j = 0; j < rs.size(); j++) {
194                         System.out.println(cutStrs[i]+".set"+ComUtil.UpperInitial(rs.get(j).getId())
195                         +"("+lName+"."+rs.get(j).getName()+"+"");");
196                      }
197                     
198                     
199                     
200                     System.out.println("btl.get"+ComUtil.UpperInitial(cutStrs[i])+"().add("+cutStrs[i]+");");
201   
202                     System.out.println(" }");
203                     
204                     System.out.println(" }");
205                     
206                   //  System.out.println("init" + ComUtil.UpperInitial(cutStrs[i]) + "(btl)");
207                 }
208                     }
209                 } catch (DocumentException e) {
210                     // TODO Auto-generated catch block
211                     e.printStackTrace();
212                 }
213             }
214             
215             
216             System.out.println(" }");
217             
218             
219             
220             
221         }
222         
223     }
224     
225     //创建class时使用
226     private static String transValue(String type, String value) {
227         
228         String trans = "";
229         if (type.equals("String") || type.equals("?")) {
230             trans = value;
231         } else if (type.equals("Single")) {
232             trans = "Float.parseFloat(" + value + ")";
233         } else {
234             trans = "Integer.parseInt(" + value + ")";
235         }
236         
237         return trans;
238     }
根据规则在控制台打印出相关类

效果:

技术图片
public class Test {
public MasterData masterData;
public List<LegionData> legionDatas;
public List<TerrainData> terrainDatas;
public List<RegionData> regionDatas;
public List<BelongData> belongDatas;
public List<BuildData> buildDatas;
public List<ArmyData> armyDatas;
public List<TrapData> trapDatas;
public List<PlanData> planDatas;
public List<WeatherData> weatherDatas;
public List<EventData> eventDatas;
public List<ReliefData> reliefDatas;
public List<AirData> airDatas;
public List<PlaceAData> placeADatas;
public List<PlaceBData> placeBDatas;
public List<CapitalData> capitalDatas;
public List<StrategicData> strategicDatas;
public List<AirSData> airSDatas;
public Test( BTLDAO btl) {
setMasterData(btl.getBm0());
setLegionData(btl.getBm1());
setTerrainData(btl.getBm2());
setRegionData(btl.getBm3());
setBelongData(btl.getBm4());
setBuildData(btl.getBm5());
setArmyData(btl.getBm6());
setTrapData(btl.getBm7());
setPlanData(btl.getBm8());
setWeatherData(btl.getBm9());
setEventData(btl.getBm10());
setReliefData(btl.getBm11());
setAirData(btl.getBm12());
setPlaceAData(btl.getBm13());
setPlaceBData(btl.getBm14());
setCapitalData(btl.getBm15());
setStrategicData(btl.getBm16());
setAirSData(btl.getBm17());
 }
public class MasterData {
private Integer biBtlVersion;
public Integer getBiBtlVersion(){ return biBtlVersion;}
public void setBiBtlVersion(Integer biBtlVersion){ this.biBtlVersion=biBtlVersion;}
private Integer biMapSource;
public Integer getBiMapSource(){ return biMapSource;}
public void setBiMapSource(Integer biMapSource){ this.biMapSource=biMapSource;}
private Integer biMapCutx;
public Integer getBiMapCutx(){ return biMapCutx;}
public void setBiMapCutx(Integer biMapCutx){ this.biMapCutx=biMapCutx;}
private Integer biMapCuty;
public Integer getBiMapCuty(){ return biMapCuty;}
public void setBiMapCuty(Integer biMapCuty){ this.biMapCuty=biMapCuty;}
private Integer biMapx;
public Integer getBiMapx(){ return biMapx;}
public void setBiMapx(Integer biMapx){ this.biMapx=biMapx;}
private Integer biMapy;
public Integer getBiMapy(){ return biMapy;}
public void setBiMapy(Integer biMapy){ this.biMapy=biMapy;}
private Integer biLegionNum;
public Integer getBiLegionNum(){ return biLegionNum;}
public void setBiLegionNum(Integer biLegionNum){ this.biLegionNum=biLegionNum;}
private Integer biBuildingNum;
public Integer getBiBuildingNum(){ return biBuildingNum;}
public void setBiBuildingNum(Integer biBuildingNum){ this.biBuildingNum=biBuildingNum;}
private Integer biUnitsNum;
public Integer getBiUnitsNum(){ return biUnitsNum;}
public void setBiUnitsNum(Integer biUnitsNum){ this.biUnitsNum=biUnitsNum;}
private Integer biMovingNum;
public Integer getBiMovingNum(){ return biMovingNum;}
public void setBiMovingNum(Integer biMovingNum){ this.biMovingNum=biMovingNum;}
private Integer biEventsNum;
public Integer getBiEventsNum(){ return biEventsNum;}
public void setBiEventsNum(Integer biEventsNum){ this.biEventsNum=biEventsNum;}
private Integer biWeatherNum;
public Integer getBiWeatherNum(){ return biWeatherNum;}
public void setBiWeatherNum(Integer biWeatherNum){ this.biWeatherNum=biWeatherNum;}
private Integer biTask;
public Integer getBiTask(){ return biTask;}
public void setBiTask(Integer biTask){ this.biTask=biTask;}
private Integer biVictoryRound;
public Integer getBiVictoryRound(){ return biVictoryRound;}
public void setBiVictoryRound(Integer biVictoryRound){ this.biVictoryRound=biVictoryRound;}
private Integer biGreatVictoryRound;
public Integer getBiGreatVictoryRound(){ return biGreatVictoryRound;}
public void setBiGreatVictoryRound(Integer biGreatVictoryRound){ this.biGreatVictoryRound=biGreatVictoryRound;}
private Integer biSummonSoldiersNum;
public Integer getBiSummonSoldiersNum(){ return biSummonSoldiersNum;}
public void setBiSummonSoldiersNum(Integer biSummonSoldiersNum){ this.biSummonSoldiersNum=biSummonSoldiersNum;}
private Integer biAirportAirstrikesNum;
public Integer getBiAirportAirstrikesNum(){ return biAirportAirstrikesNum;}
public void setBiAirportAirstrikesNum(Integer biAirportAirstrikesNum){ this.biAirportAirstrikesNum=biAirportAirstrikesNum;}
private Integer biEntranceA;
public Integer getBiEntranceA(){ return biEntranceA;}
public void setBiEntranceA(Integer biEntranceA){ this.biEntranceA=biEntranceA;}
private Integer biEntranceB;
public Integer getBiEntranceB(){ return biEntranceB;}
public void setBiEntranceB(Integer biEntranceB){ this.biEntranceB=biEntranceB;}
private Integer biFlagNum;
public Integer getBiFlagNum(){ return biFlagNum;}
public void setBiFlagNum(Integer biFlagNum){ this.biFlagNum=biFlagNum;}
private Integer biUnknown20;
public Integer getBiUnknown20(){ return biUnknown20;}
public void setBiUnknown20(Integer biUnknown20){ this.biUnknown20=biUnknown20;}
private Integer biUnknown21;
public Integer getBiUnknown21(){ return biUnknown21;}
public void setBiUnknown21(Integer biUnknown21){ this.biUnknown21=biUnknown21;}
private Integer biTerrainsNum;
public Integer getBiTerrainsNum(){ return biTerrainsNum;}
public void setBiTerrainsNum(Integer biTerrainsNum){ this.biTerrainsNum=biTerrainsNum;}
private Integer biMoneyNeeded;
public Integer getBiMoneyNeeded(){ return biMoneyNeeded;}
public void setBiMoneyNeeded(Integer biMoneyNeeded){ this.biMoneyNeeded=biMoneyNeeded;}
private Integer biIndustryNeeded;
public Integer getBiIndustryNeeded(){ return biIndustryNeeded;}
public void setBiIndustryNeeded(Integer biIndustryNeeded){ this.biIndustryNeeded=biIndustryNeeded;}
private Integer biTechNeeded;
public Integer getBiTechNeeded(){ return biTechNeeded;}
public void setBiTechNeeded(Integer biTechNeeded){ this.biTechNeeded=biTechNeeded;}
private Integer biLandminesNum;
public Integer getBiLandminesNum(){ return biLandminesNum;}
public void setBiLandminesNum(Integer biLandminesNum){ this.biLandminesNum=biLandminesNum;}
private Integer biUnknown27;
public Integer getBiUnknown27(){ return biUnknown27;}
public void setBiUnknown27(Integer biUnknown27){ this.biUnknown27=biUnknown27;}
private Integer biStreatgyNum;
public Integer getBiStreatgyNum(){ return biStreatgyNum;}
public void setBiStreatgyNum(Integer biStreatgyNum){ this.biStreatgyNum=biStreatgyNum;}
private Integer biUnknown29;
public Integer getBiUnknown29(){ return biUnknown29;}
public void setBiUnknown29(Integer biUnknown29){ this.biUnknown29=biUnknown29;}
private Integer biUnknown30;
public Integer getBiUnknown30(){ return biUnknown30;}
public void setBiUnknown30(Integer biUnknown30){ this.biUnknown30=biUnknown30;}
private Integer biNationalAirstrikesNum;
public Integer getBiNationalAirstrikesNum(){ return biNationalAirstrikesNum;}
public void setBiNationalAirstrikesNum(Integer biNationalAirstrikesNum){ this.biNationalAirstrikesNum=biNationalAirstrikesNum;}
 }
public void setMasterData(BtlModule0 bm0){
if (masterData==null){masterData=new MasterData();}
masterData.setBiBtlVersion(Integer.parseInt(bm0.getBm0_1()));
masterData.setBiMapSource(Integer.parseInt(bm0.getBm0_2()));
masterData.setBiMapCutx(Integer.parseInt(bm0.getBm0_3()));
masterData.setBiMapCuty(Integer.parseInt(bm0.getBm0_4()));
masterData.setBiMapx(Integer.parseInt(bm0.getBm0_5()));
masterData.setBiMapy(Integer.parseInt(bm0.getBm0_6()));
masterData.setBiLegionNum(Integer.parseInt(bm0.getBm0_7()));
masterData.setBiBuildingNum(Integer.parseInt(bm0.getBm0_8()));
masterData.setBiUnitsNum(Integer.parseInt(bm0.getBm0_9()));
masterData.setBiMovingNum(Integer.parseInt(bm0.getBm0_10()));
masterData.setBiEventsNum(Integer.parseInt(bm0.getBm0_11()));
masterData.setBiWeatherNum(Integer.parseInt(bm0.getBm0_12()));
masterData.setBiTask(Integer.parseInt(bm0.getBm0_13()));
masterData.setBiVictoryRound(Integer.parseInt(bm0.getBm0_14()));
masterData.setBiGreatVictoryRound(Integer.parseInt(bm0.getBm0_15()));
masterData.setBiSummonSoldiersNum(Integer.parseInt(bm0.getBm0_16()));
masterData.setBiAirportAirstrikesNum(Integer.parseInt(bm0.getBm0_17()));
masterData.setBiEntranceA(Integer.parseInt(bm0.getBm0_18()));
masterData.setBiEntranceB(Integer.parseInt(bm0.getBm0_19()));
masterData.setBiFlagNum(Integer.parseInt(bm0.getBm0_20()));
masterData.setBiUnknown20(Integer.parseInt(bm0.getBm0_21()));
masterData.setBiUnknown21(Integer.parseInt(bm0.getBm0_22()));
masterData.setBiTerrainsNum(Integer.parseInt(bm0.getBm0_23()));
masterData.setBiMoneyNeeded(Integer.parseInt(bm0.getBm0_24()));
masterData.setBiIndustryNeeded(Integer.parseInt(bm0.getBm0_25()));
masterData.setBiTechNeeded(Integer.parseInt(bm0.getBm0_26()));
masterData.setBiLandminesNum(Integer.parseInt(bm0.getBm0_27()));
masterData.setBiUnknown27(Integer.parseInt(bm0.getBm0_28()));
masterData.setBiStreatgyNum(Integer.parseInt(bm0.getBm0_29()));
masterData.setBiUnknown29(Integer.parseInt(bm0.getBm0_30()));
masterData.setBiUnknown30(Integer.parseInt(bm0.getBm0_31()));
masterData.setBiNationalAirstrikesNum(Integer.parseInt(bm0.getBm0_32()));
 }
public class LegionData {
private Integer blId;
public Integer getBlId(){ return blId;}
public void setBlId(Integer blId){ this.blId=blId;}
private Integer blCountry;
public Integer getBlCountry(){ return blCountry;}
public void setBlCountry(Integer blCountry){ this.blCountry=blCountry;}
private Integer blMoney;
public Integer getBlMoney(){ return blMoney;}
public void setBlMoney(Integer blMoney){ this.blMoney=blMoney;}
private Integer blIndustry;
public Integer getBlIndustry(){ return blIndustry;}
public void setBlIndustry(Integer blIndustry){ this.blIndustry=blIndustry;}
private Integer blTech;
public Integer getBlTech(){ return blTech;}
public void setBlTech(Integer blTech){ this.blTech=blTech;}
private Integer blControl;
public Integer getBlControl(){ return blControl;}
public void setBlControl(Integer blControl){ this.blControl=blControl;}
private Integer blCamp;
public Integer getBlCamp(){ return blCamp;}
public void setBlCamp(Integer blCamp){ this.blCamp=blCamp;}
private Integer blDefeat;
public Integer getBlDefeat(){ return blDefeat;}
public void setBlDefeat(Integer blDefeat){ this.blDefeat=blDefeat;}
private float blMoneyRate;
public float getBlMoneyRate(){ return blMoneyRate;}
public void setBlMoneyRate(float blMoneyRate){ this.blMoneyRate=blMoneyRate;}
private float blHpRate;
public float getBlHpRate(){ return blHpRate;}
public void setBlHpRate(float blHpRate){ this.blHpRate=blHpRate;}
private Integer r;
public Integer getR(){ return r;}
public void setR(Integer r){ this.r=r;}
private Integer g;
public Integer getG(){ return g;}
public void setG(Integer g){ this.g=g;}
private Integer b;
public Integer getB(){ return b;}
public void setB(Integer b){ this.b=b;}
private Integer a;
public Integer getA(){ return a;}
public void setA(Integer a){ this.a=a;}
private Integer blNuclearNum1;
public Integer getBlNuclearNum1(){ return blNuclearNum1;}
public void setBlNuclearNum1(Integer blNuclearNum1){ this.blNuclearNum1=blNuclearNum1;}
private Integer blNuclearNum2;
public Integer getBlNuclearNum2(){ return blNuclearNum2;}
public void setBlNuclearNum2(Integer blNuclearNum2){ this.blNuclearNum2=blNuclearNum2;}
private Integer blNuclearNum3;
public Integer getBlNuclearNum3(){ return blNuclearNum3;}
public void setBlNuclearNum3(Integer blNuclearNum3){ this.blNuclearNum3=blNuclearNum3;}
private Integer blNuclearNum4;
public Integer getBlNuclearNum4(){ return blNuclearNum4;}
public void setBlNuclearNum4(Integer blNuclearNum4){ this.blNuclearNum4=blNuclearNum4;}
private Integer blUnknown71;
public Integer getBlUnknown71(){ return blUnknown71;}
public void setBlUnknown71(Integer blUnknown71){ this.blUnknown71=blUnknown71;}
private Integer blUnknown72;
public Integer getBlUnknown72(){ return blUnknown72;}
public void setBlUnknown72(Integer blUnknown72){ this.blUnknown72=blUnknown72;}
private Integer blUnknown73;
public Integer getBlUnknown73(){ return blUnknown73;}
public void setBlUnknown73(Integer blUnknown73){ this.blUnknown73=blUnknown73;}
private Integer blUnknown74;
public Integer getBlUnknown74(){ return blUnknown74;}
public void setBlUnknown74(Integer blUnknown74){ this.blUnknown74=blUnknown74;}
private Integer blUnknown75;
public Integer getBlUnknown75(){ return blUnknown75;}
public void setBlUnknown75(Integer blUnknown75){ this.blUnknown75=blUnknown75;}
private Integer blUnknown76;
public Integer getBlUnknown76(){ return blUnknown76;}
public void setBlUnknown76(Integer blUnknown76){ this.blUnknown76=blUnknown76;}
private Integer blUnknown77;
public Integer getBlUnknown77(){ return blUnknown77;}
public void setBlUnknown77(Integer blUnknown77){ this.blUnknown77=blUnknown77;}
private Integer blUnknown78;
public Integer getBlUnknown78(){ return blUnknown78;}
public void setBlUnknown78(Integer blUnknown78){ this.blUnknown78=blUnknown78;}
private Integer blUnknown79;
public Integer getBlUnknown79(){ return blUnknown79;}
public void setBlUnknown79(Integer blUnknown79){ this.blUnknown79=blUnknown79;}
private Integer blUnknown80;
public Integer getBlUnknown80(){ return blUnknown80;}
public void setBlUnknown80(Integer blUnknown80){ this.blUnknown80=blUnknown80;}
private Integer blUnknown81;
public Integer getBlUnknown81(){ return blUnknown81;}
public void setBlUnknown81(Integer blUnknown81){ this.blUnknown81=blUnknown81;}
private Integer blUnknown82;
public Integer getBlUnknown82(){ return blUnknown82;}
public void setBlUnknown82(Integer blUnknown82){ this.blUnknown82=blUnknown82;}
private Integer blUnknown83;
public Integer getBlUnknown83(){ return blUnknown83;}
public void setBlUnknown83(Integer blUnknown83){ this.blUnknown83=blUnknown83;}
private Integer blUnknown84;
public Integer getBlUnknown84(){ return blUnknown84;}
public void setBlUnknown84(Integer blUnknown84){ this.blUnknown84=blUnknown84;}
private Integer blUnknown85;
public Integer getBlUnknown85(){ return blUnknown85;}
public void setBlUnknown85(Integer blUnknown85){ this.blUnknown85=blUnknown85;}
private Integer blUnknown86;
public Integer getBlUnknown86(){ return blUnknown86;}
public void setBlUnknown86(Integer blUnknown86){ this.blUnknown86=blUnknown86;}
private Integer blUnknown87;
public Integer getBlUnknown87(){ return blUnknown87;}
public void setBlUnknown87(Integer blUnknown87){ this.blUnknown87=blUnknown87;}
private Integer blUnknown88;
public Integer getBlUnknown88(){ return blUnknown88;}
public void setBlUnknown88(Integer blUnknown88){ this.blUnknown88=blUnknown88;}
private Integer blUnknown89;
public Integer getBlUnknown89(){ return blUnknown89;}
public void setBlUnknown89(Integer blUnknown89){ this.blUnknown89=blUnknown89;}
private Integer blUnknown90;
public Integer getBlUnknown90(){ return blUnknown90;}
public void setBlUnknown90(Integer blUnknown90){ this.blUnknown90=blUnknown90;}
private Integer blUnknown91;
public Integer getBlUnknown91(){ return blUnknown91;}
public void setBlUnknown91(Integer blUnknown91){ this.blUnknown91=blUnknown91;}
private Integer blUnknown92;
public Integer getBlUnknown92(){ return blUnknown92;}
public void setBlUnknown92(Integer blUnknown92){ this.blUnknown92=blUnknown92;}
private Integer blUnknown93;
public Integer getBlUnknown93(){ return blUnknown93;}
public void setBlUnknown93(Integer blUnknown93){ this.blUnknown93=blUnknown93;}
private Integer blUnknown94;
public Integer getBlUnknown94(){ return blUnknown94;}
public void setBlUnknown94(Integer blUnknown94){ this.blUnknown94=blUnknown94;}
private Integer blUnknown95;
public Integer getBlUnknown95(){ return blUnknown95;}
public void setBlUnknown95(Integer blUnknown95){ this.blUnknown95=blUnknown95;}
private Integer blUnknown96;
public Integer getBlUnknown96(){ return blUnknown96;}
public void setBlUnknown96(Integer blUnknown96){ this.blUnknown96=blUnknown96;}
private Integer blUnknown97;
public Integer getBlUnknown97(){ return blUnknown97;}
public void setBlUnknown97(Integer blUnknown97){ this.blUnknown97=blUnknown97;}
private Integer blUnknown98;
public Integer getBlUnknown98(){ return blUnknown98;}
public void setBlUnknown98(Integer blUnknown98){ this.blUnknown98=blUnknown98;}
private Integer blUnknown99;
public Integer getBlUnknown99(){ return blUnknown99;}
public void setBlUnknown99(Integer blUnknown99){ this.blUnknown99=blUnknown99;}
private Integer blUnknown100;
public Integer getBlUnknown100(){ return blUnknown100;}
public void setBlUnknown100(Integer blUnknown100){ this.blUnknown100=blUnknown100;}
private Integer blUnknown101;
public Integer getBlUnknown101(){ return blUnknown101;}
public void setBlUnknown101(Integer blUnknown101){ this.blUnknown101=blUnknown101;}
private Integer blUnknown102;
public Integer getBlUnknown102(){ return blUnknown102;}
public void setBlUnknown102(Integer blUnknown102){ this.blUnknown102=blUnknown102;}
private Integer blUnknown103;
public Integer getBlUnknown103(){ return blUnknown103;}
public void setBlUnknown103(Integer blUnknown103){ this.blUnknown103=blUnknown103;}
private Integer blUnknown104;
public Integer getBlUnknown104(){ return blUnknown104;}
public void setBlUnknown104(Integer blUnknown104){ this.blUnknown104=blUnknown104;}
private Integer blUnknown105;
public Integer getBlUnknown105(){ return blUnknown105;}
public void setBlUnknown105(Integer blUnknown105){ this.blUnknown105=blUnknown105;}
private Integer blUnknown106;
public Integer getBlUnknown106(){ return blUnknown106;}
public void setBlUnknown106(Integer blUnknown106){ this.blUnknown106=blUnknown106;}
private Integer blUnknown107;
public Integer getBlUnknown107(){ return blUnknown107;}
public void setBlUnknown107(Integer blUnknown107){ this.blUnknown107=blUnknown107;}
private Integer blUnknown108;
public Integer getBlUnknown108(){ return blUnknown108;}
public void setBlUnknown108(Integer blUnknown108){ this.blUnknown108=blUnknown108;}
private Integer blUnknown109;
public Integer getBlUnknown109(){ return blUnknown109;}
public void setBlUnknown109(Integer blUnknown109){ this.blUnknown109=blUnknown109;}
private Integer blUnknown110;
public Integer getBlUnknown110(){ return blUnknown110;}
public void setBlUnknown110(Integer blUnknown110){ this.blUnknown110=blUnknown110;}
private Integer blUnknown111;
public Integer getBlUnknown111(){ return blUnknown111;}
public void setBlUnknown111(Integer blUnknown111){ this.blUnknown111=blUnknown111;}
private Integer blUnknown112;
public Integer getBlUnknown112(){ return blUnknown112;}
public void setBlUnknown112(Integer blUnknown112){ this.blUnknown112=blUnknown112;}
private Integer blUnknown113;
public Integer getBlUnknown113(){ return blUnknown113;}
public void setBlUnknown113(Integer blUnknown113){ this.blUnknown113=blUnknown113;}
private Integer blUnknown114;
public Integer getBlUnknown114(){ return blUnknown114;}
public void setBlUnknown114(Integer blUnknown114){ this.blUnknown114=blUnknown114;}
private Integer blUnknown115;
public Integer getBlUnknown115(){ return blUnknown115;}
public void setBlUnknown115(Integer blUnknown115){ this.blUnknown115=blUnknown115;}
private Integer blUnknown116;
public Integer getBlUnknown116(){ return blUnknown116;}
public void setBlUnknown116(Integer blUnknown116){ this.blUnknown116=blUnknown116;}
private Integer blUnknown117;
public Integer getBlUnknown117(){ return blUnknown117;}
public void setBlUnknown117(Integer blUnknown117){ this.blUnknown117=blUnknown117;}
private Integer blUnknown118;
public Integer getBlUnknown118(){ return blUnknown118;}
public void setBlUnknown118(Integer blUnknown118){ this.blUnknown118=blUnknown118;}
private Integer blUnknown119;
public Integer getBlUnknown119(){ return blUnknown119;}
public void setBlUnknown119(Integer blUnknown119){ this.blUnknown119=blUnknown119;}
private Integer blUnknown120;
public Integer getBlUnknown120(){ return blUnknown120;}
public void setBlUnknown120(Integer blUnknown120){ this.blUnknown120=blUnknown120;}
private Integer blUnknown121;
public Integer getBlUnknown121(){ return blUnknown121;}
public void setBlUnknown121(Integer blUnknown121){ this.blUnknown121=blUnknown121;}
private Integer blUnknown122;
public Integer getBlUnknown122(){ return blUnknown122;}
public void setBlUnknown122(Integer blUnknown122){ this.blUnknown122=blUnknown122;}
private Integer blUnknown123;
public Integer getBlUnknown123(){ return blUnknown123;}
public void setBlUnknown123(Integer blUnknown123){ this.blUnknown123=blUnknown123;}
private Integer blUnknown124;
public Integer getBlUnknown124(){ return blUnknown124;}
public void setBlUnknown124(Integer blUnknown124){ this.blUnknown124=blUnknown124;}
private Integer blUnknown125;
public Integer getBlUnknown125(){ return blUnknown125;}
public void setBlUnknown125(Integer blUnknown125){ this.blUnknown125=blUnknown125;}
private Integer blUnknown126;
public Integer getBlUnknown126(){ return blUnknown126;}
public void setBlUnknown126(Integer blUnknown126){ this.blUnknown126=blUnknown126;}
private Integer blUnknown127;
public Integer getBlUnknown127(){ return blUnknown127;}
public void setBlUnknown127(Integer blUnknown127){ this.blUnknown127=blUnknown127;}
private Integer blUnknown128;
public Integer getBlUnknown128(){ return blUnknown128;}
public void setBlUnknown128(Integer blUnknown128){ this.blUnknown128=blUnknown128;}
private String blUnknown129;
public String getBlUnknown129(){ return blUnknown129;}
public void setBlUnknown129(String blUnknown129){ this.blUnknown129=blUnknown129;}
private Integer blUnknown130;
public Integer getBlUnknown130(){ return blUnknown130;}
public void setBlUnknown130(Integer blUnknown130){ this.blUnknown130=blUnknown130;}
 }
public void setLegionData(List<BtlModule1> bm1s){
if (legionDatas==null){legionDatas=new ArrayList<LegionData>();}else{this.legionDatas.clear();}
for(BtlModule1 bm1:bm1s) {
LegionData legionData=new LegionData();
legionData.setBlId(Integer.parseInt(bm1.getBm1_1()));
legionData.setBlCountry(Integer.parseInt(bm1.getBm1_2()));
legionData.setBlMoney(Integer.parseInt(bm1.getBm1_3()));
legionData.setBlIndustry(Integer.parseInt(bm1.getBm1_4()));
legionData.setBlTech(Integer.parseInt(bm1.getBm1_5()));
legionData.setBlControl(Integer.parseInt(bm1.getBm1_6()));
legionData.setBlCamp(Integer.parseInt(bm1.getBm1_7()));
legionData.setBlDefeat(Integer.parseInt(bm1.getBm1_8()));
legionData.setBlMoneyRate(Float.parseFloat(bm1.getBm1_9()));
legionData.setBlHpRate(Float.parseFloat(bm1.getBm1_10()));
legionData.setR(Integer.parseInt(bm1.getBm1_11()));
legionData.setG(Integer.parseInt(bm1.getBm1_12()));
legionData.setB(Integer.parseInt(bm1.getBm1_13()));
legionData.setA(Integer.parseInt(bm1.getBm1_14()));
legionData.setBlNuclearNum1(Integer.parseInt(bm1.getBm1_15()));
legionData.setBlNuclearNum2(Integer.parseInt(bm1.getBm1_16()));
legionData.setBlNuclearNum3(Integer.parseInt(bm1.getBm1_17()));
legionData.setBlNuclearNum4(Integer.parseInt(bm1.getBm1_18()));
legionData.setBlUnknown71(Integer.parseInt(bm1.getBm1_19()));
legionData.setBlUnknown72(Integer.parseInt(bm1.getBm1_20()));
legionData.setBlUnknown73(Integer.parseInt(bm1.getBm1_21()));
legionData.setBlUnknown74(Integer.parseInt(bm1.getBm1_22()));
legionData.setBlUnknown75(Integer.parseInt(bm1.getBm1_23()));
legionData.setBlUnknown76(Integer.parseInt(bm1.getBm1_24()));
legionData.setBlUnknown77(Integer.parseInt(bm1.getBm1_25()));
legionData.setBlUnknown78(Integer.parseInt(bm1.getBm1_26()));
legionData.setBlUnknown79(Integer.parseInt(bm1.getBm1_27()));
legionData.setBlUnknown80(Integer.parseInt(bm1.getBm1_28()));
legionData.setBlUnknown81(Integer.parseInt(bm1.getBm1_29()));
legionData.setBlUnknown82(Integer.parseInt(bm1.getBm1_30()));
legionData.setBlUnknown83(Integer.parseInt(bm1.getBm1_31()));
legionData.setBlUnknown84(Integer.parseInt(bm1.getBm1_32()));
legionData.setBlUnknown85(Integer.parseInt(bm1.getBm1_33()));
legionData.setBlUnknown86(Integer.parseInt(bm1.getBm1_34()));
legionData.setBlUnknown87(Integer.parseInt(bm1.getBm1_35()));
legionData.setBlUnknown88(Integer.parseInt(bm1.getBm1_36()));
legionData.setBlUnknown89(Integer.parseInt(bm1.getBm1_37()));
legionData.setBlUnknown90(Integer.parseInt(bm1.getBm1_38()));
legionData.setBlUnknown91(Integer.parseInt(bm1.getBm1_39()));
legionData.setBlUnknown92(Integer.parseInt(bm1.getBm1_40()));
legionData.setBlUnknown93(Integer.parseInt(bm1.getBm1_41()));
legionData.setBlUnknown94(Integer.parseInt(bm1.getBm1_42()));
legionData.setBlUnknown95(Integer.parseInt(bm1.getBm1_43()));
legionData.setBlUnknown96(Integer.parseInt(bm1.getBm1_44()));
legionData.setBlUnknown97(Integer.parseInt(bm1.getBm1_45()));
legionData.setBlUnknown98(Integer.parseInt(bm1.getBm1_46()));
legionData.setBlUnknown99(Integer.parseInt(bm1.getBm1_47()));
legionData.setBlUnknown100(Integer.parseInt(bm1.getBm1_48()));
legionData.setBlUnknown101(Integer.parseInt(bm1.getBm1_49()));
legionData.setBlUnknown102(Integer.parseInt(bm1.getBm1_50()));
legionData.setBlUnknown103(Integer.parseInt(bm1.getBm1_51()));
legionData.setBlUnknown104(Integer.parseInt(bm1.getBm1_52()));
legionData.setBlUnknown105(Integer.parseInt(bm1.getBm1_53()));
legionData.setBlUnknown106(Integer.parseInt(bm1.getBm1_54()));
legionData.setBlUnknown107(Integer.parseInt(bm1.getBm1_55()));
legionData.setBlUnknown108(Integer.parseInt(bm1.getBm1_56()));
legionData.setBlUnknown109(Integer.parseInt(bm1.getBm1_57()));
legionData.setBlUnknown110(Integer.parseInt(bm1.getBm1_58()));
legionData.setBlUnknown111(Integer.parseInt(bm1.getBm1_59()));
legionData.setBlUnknown112(Integer.parseInt(bm1.getBm1_60()));
legionData.setBlUnknown113(Integer.parseInt(bm1.getBm1_61()));
legionData.setBlUnknown114(Integer.parseInt(bm1.getBm1_62()));
legionData.setBlUnknown115(Integer.parseInt(bm1.getBm1_63()));
legionData.setBlUnknown116(Integer.parseInt(bm1.getBm1_64()));
legionData.setBlUnknown117(Integer.parseInt(bm1.getBm1_65()));
legionData.setBlUnknown118(Integer.parseInt(bm1.getBm1_66()));
legionData.setBlUnknown119(Integer.parseInt(bm1.getBm1_67()));
legionData.setBlUnknown120(Integer.parseInt(bm1.getBm1_68()));
legionData.setBlUnknown121(Integer.parseInt(bm1.getBm1_69()));
legionData.setBlUnknown122(Integer.parseInt(bm1.getBm1_70()));
legionData.setBlUnknown123(Integer.parseInt(bm1.getBm1_71()));
legionData.setBlUnknown124(Integer.parseInt(bm1.getBm1_72()));
legionData.setBlUnknown125(Integer.parseInt(bm1.getBm1_73()));
legionData.setBlUnknown126(Integer.parseInt(bm1.getBm1_74()));
legionData.setBlUnknown127(Integer.parseInt(bm1.getBm1_75()));
legionData.setBlUnknown128(Integer.parseInt(bm1.getBm1_76()));
legionData.setBlUnknown129(bm1.getBm1_77());
legionData.setBlUnknown130(Integer.parseInt(bm1.getBm1_78()));
this.legionDatas.add(legionData);
 }
 }
public class TerrainData {
private Integer bmTerrain1Group;
public Integer getBmTerrain1Group(){ return bmTerrain1Group;}
public void setBmTerrain1Group(Integer bmTerrain1Group){ this.bmTerrain1Group=bmTerrain1Group;}
private Integer bmTerrain1Id;
public Integer getBmTerrain1Id(){ return bmTerrain1Id;}
public void setBmTerrain1Id(Integer bmTerrain1Id){ this.bmTerrain1Id=bmTerrain1Id;}
private Integer bmTerrain1X;
public Integer getBmTerrain1X(){ return bmTerrain1X;}
public void setBmTerrain1X(Integer bmTerrain1X){ this.bmTerrain1X=bmTerrain1X;}
private Integer bmTerrain1Y;
public Integer getBmTerrain1Y(){ return bmTerrain1Y;}
public void setBmTerrain1Y(Integer bmTerrain1Y){ this.bmTerrain1Y=bmTerrain1Y;}
private Integer bmDoodad1Group;
public Integer getBmDoodad1Group(){ return bmDoodad1Group;}
public void setBmDoodad1Group(Integer bmDoodad1Group){ this.bmDoodad1Group=bmDoodad1Group;}
private Integer bmDoodad1Id;
public Integer getBmDoodad1Id(){ return bmDoodad1Id;}
public void setBmDoodad1Id(Integer bmDoodad1Id){ this.bmDoodad1Id=bmDoodad1Id;}
private Integer bmDoodad1X;
public Integer getBmDoodad1X(){ return bmDoodad1X;}
public void setBmDoodad1X(Integer bmDoodad1X){ this.bmDoodad1X=bmDoodad1X;}
private Integer bmDoodad1Y;
public Integer getBmDoodad1Y(){ return bmDoodad1Y;}
public void setBmDoodad1Y(Integer bmDoodad1Y){ this.bmDoodad1Y=bmDoodad1Y;}
private Integer bmDoodad2Group;
public Integer getBmDoodad2Group(){ return bmDoodad2Group;}
public void setBmDoodad2Group(Integer bmDoodad2Group){ this.bmDoodad2Group=bmDoodad2Group;}
private Integer bmDoodad2Id;
public Integer getBmDoodad2Id(){ return bmDoodad2Id;}
public void setBmDoodad2Id(Integer bmDoodad2Id){ this.bmDoodad2Id=bmDoodad2Id;}
private Integer bmDoodad2X;
public Integer getBmDoodad2X(){ return bmDoodad2X;}
public void setBmDoodad2X(Integer bmDoodad2X){ this.bmDoodad2X=bmDoodad2X;}
private Integer bmDoodad2Y;
public Integer getBmDoodad2Y(){ return bmDoodad2Y;}
public void setBmDoodad2Y(Integer bmDoodad2Y){ this.bmDoodad2Y=bmDoodad2Y;}
private Integer waterPass;
public Integer getWaterPass(){ return waterPass;}
public void setWaterPass(Integer waterPass){ this.waterPass=waterPass;}
private Integer landPass;
public Integer getLandPass(){ return landPass;}
public void setLandPass(Integer landPass){ this.landPass=landPass;}
private Integer bmUnknown14;
public Integer getBmUnknown14(){ return bmUnknown14;}
public void setBmUnknown14(Integer bmUnknown14){ this.bmUnknown14=bmUnknown14;}
private Integer bmUnknown15;
public Integer getBmUnknown15(){ return bmUnknown15;}
public void setBmUnknown15(Integer bmUnknown15){ this.bmUnknown15=bmUnknown15;}
 }
public void setTerrainData(List<BtlModule2> bm2s){
if (terrainDatas==null){terrainDatas=new ArrayList<TerrainData>();}else{this.terrainDatas.clear();}
for(BtlModule2 bm2:bm2s) {
TerrainData terrainData=new TerrainData();
terrainData.setBmTerrain1Group(Integer.parseInt(bm2.getBm2_1()));
terrainData.setBmTerrain1Id(Integer.parseInt(bm2.getBm2_2()));
terrainData.setBmTerrain1X(Integer.parseInt(bm2.getBm2_3()));
terrainData.setBmTerrain1Y(Integer.parseInt(bm2.getBm2_4()));
terrainData.setBmDoodad1Group(Integer.parseInt(bm2.getBm2_5()));
terrainData.setBmDoodad1Id(Integer.parseInt(bm2.getBm2_6()));
terrainData.setBmDoodad1X(Integer.parseInt(bm2.getBm2_7()));
terrainData.setBmDoodad1Y(Integer.parseInt(bm2.getBm2_8()));
terrainData.setBmDoodad2Group(Integer.parseInt(bm2.getBm2_9()));
terrainData.setBmDoodad2Id(Integer.parseInt(bm2.getBm2_10()));
terrainData.setBmDoodad2X(Integer.parseInt(bm2.getBm2_11()));
terrainData.setBmDoodad2Y(Integer.parseInt(bm2.getBm2_12()));
terrainData.setWaterPass(Integer.parseInt(bm2.getBm2_13()));
terrainData.setLandPass(Integer.parseInt(bm2.getBm2_14()));
terrainData.setBmUnknown14(Integer.parseInt(bm2.getBm2_15()));
terrainData.setBmUnknown15(Integer.parseInt(bm2.getBm2_16()));
this.terrainDatas.add(terrainData);
 }
 }
public class RegionData {
private Integer bpProvince;
public Integer getBpProvince(){ return bpProvince;}
public void setBpProvince(Integer bpProvince){ this.bpProvince=bpProvince;}
 }
public void setRegionData(List<BtlModule3> bm3s){
if (regionDatas==null){regionDatas=new ArrayList<RegionData>();}else{this.regionDatas.clear();}
for(BtlModule3 bm3:bm3s) {
RegionData regionData=new RegionData();
regionData.setBpProvince(Integer.parseInt(bm3.getBm3_1()));
this.regionDatas.add(regionData);
 }
 }
public class BelongData {
private Integer bbBelong;
public Integer getBbBelong(){ return bbBelong;}
public void setBbBelong(Integer bbBelong){ this.bbBelong=bbBelong;}
 }
public void setBelongData(List<BtlModule4> bm4s){
if (belongDatas==null){belongDatas=new ArrayList<BelongData>();}else{this.belongDatas.clear();}
for(BtlModule4 bm4:bm4s) {
BelongData belongData=new BelongData();
belongData.setBbBelong(Integer.parseInt(bm4.getBm4_1()));
this.belongDatas.add(belongData);
 }
 }
public class BuildData {
private Integer buPosition;
public Integer getBuPosition(){ return buPosition;}
public void setBuPosition(Integer buPosition){ this.buPosition=buPosition;}
private Integer buAreaid;
public Integer getBuAreaid(){ return buAreaid;}
public void setBuAreaid(Integer buAreaid){ this.buAreaid=buAreaid;}
private Integer buType;
public Integer getBuType(){ return buType;}
public void setBuType(Integer buType){ this.buType=buType;}
private Integer buStyle;
public Integer getBuStyle(){ return buStyle;}
public void setBuStyle(Integer buStyle){ this.buStyle=buStyle;}
private Integer buCityFeature;
public Integer getBuCityFeature(){ return buCityFeature;}
public void setBuCityFeature(Integer buCityFeature){ this.buCityFeature=buCityFeature;}
private Integer capital;
public Integer getCapital(){ return capital;}
public void setCapital(Integer capital){ this.capital=capital;}
private Integer buRewardType;
public Integer getBuRewardType(){ return buRewardType;}
public void setBuRewardType(Integer buRewardType){ this.buRewardType=buRewardType;}
private Integer buRewardNum;
public Integer getBuRewardNum(){ return buRewardNum;}
public void setBuRewardNum(Integer buRewardNum){ this.buRewardNum=buRewardNum;}
private Integer buUnknown09;
public Integer getBuUnknown09(){ return buUnknown09;}
public void setBuUnknown09(Integer buUnknown09){ this.buUnknown09=buUnknown09;}
private Integer buVictoryPoint;
public Integer getBuVictoryPoint(){ return buVictoryPoint;}
public void setBuVictoryPoint(Integer buVictoryPoint){ this.buVictoryPoint=buVictoryPoint;}
private Integer buEvent;
public Integer getBuEvent(){ return buEvent;}
public void setBuEvent(Integer buEvent){ this.buEvent=buEvent;}
private Integer buUnknown12;
public Integer getBuUnknown12(){ return buUnknown12;}
public void setBuUnknown12(Integer buUnknown12){ this.buUnknown12=buUnknown12;}
private Integer buUnknown13;
public Integer getBuUnknown13(){ return buUnknown13;}
public void setBuUnknown13(Integer buUnknown13){ this.buUnknown13=buUnknown13;}
private Integer buUnknown14;
public Integer getBuUnknown14(){ return buUnknown14;}
public void setBuUnknown14(Integer buUnknown14){ this.buUnknown14=buUnknown14;}
private Integer buUnknown15;
public Integer getBuUnknown15(){ return buUnknown15;}
public void setBuUnknown15(Integer buUnknown15){ this.buUnknown15=buUnknown15;}
private Integer buUnknown16;
public Integer getBuUnknown16(){ return buUnknown16;}
public void setBuUnknown16(Integer buUnknown16){ this.buUnknown16=buUnknown16;}
private Integer buFireLevel;
public Integer getBuFireLevel(){ return buFireLevel;}
public void setBuFireLevel(Integer buFireLevel){ this.buFireLevel=buFireLevel;}
private Integer buFireTime;
public Integer getBuFireTime(){ return buFireTime;}
public void setBuFireTime(Integer buFireTime){ this.buFireTime=buFireTime;}
private Integer buAirDefense;
public Integer getBuAirDefense(){ return buAirDefense;}
public void setBuAirDefense(Integer buAirDefense){ this.buAirDefense=buAirDefense;}
private Integer buRadar;
public Integer getBuRadar(){ return buRadar;}
public void setBuRadar(Integer buRadar){ this.buRadar=buRadar;}
private Integer buFactoryLv;
public Integer getBuFactoryLv(){ return buFactoryLv;}
public void setBuFactoryLv(Integer buFactoryLv){ this.buFactoryLv=buFactoryLv;}
private Integer buResearchLv;
public Integer getBuResearchLv(){ return buResearchLv;}
public void setBuResearchLv(Integer buResearchLv){ this.buResearchLv=buResearchLv;}
private Integer buHospitalLv;
public Integer getBuHospitalLv(){ return buHospitalLv;}
public void setBuHospitalLv(Integer buHospitalLv){ this.buHospitalLv=buHospitalLv;}
private Integer buAirportLv;
public Integer getBuAirportLv(){ return buAirportLv;}
public void setBuAirportLv(Integer buAirportLv){ this.buAirportLv=buAirportLv;}
private Integer buMissileLv;
public Integer getBuMissileLv(){ return buMissileLv;}
public void setBuMissileLv(Integer buMissileLv){ this.buMissileLv=buMissileLv;}
private Integer buNuclearLv;
public Integer getBuNuclearLv(){ return buNuclearLv;}
public void setBuNuclearLv(Integer buNuclearLv){ this.buNuclearLv=buNuclearLv;}
private Integer buUnknown27;
public Integer getBuUnknown27(){ return buUnknown27;}
public void setBuUnknown27(Integer buUnknown27){ this.buUnknown27=buUnknown27;}
private Integer buUnknown28;
public Integer getBuUnknown28(){ return buUnknown28;}
public void setBuUnknown28(Integer buUnknown28){ this.buUnknown28=buUnknown28;}
 }
public void setBuildData(List<BtlModule5> bm5s){
if (buildDatas==null){buildDatas=new ArrayList<BuildData>();}else{this.buildDatas.clear();}
for(BtlModule5 bm5:bm5s) {
BuildData buildData=new BuildData();
buildData.setBuPosition(Integer.parseInt(bm5.getBm5_1()));
buildData.setBuAreaid(Integer.parseInt(bm5.getBm5_2()));
buildData.setBuType(Integer.parseInt(bm5.getBm5_3()));
buildData.setBuStyle(Integer.parseInt(bm5.getBm5_4()));
buildData.setBuCityFeature(Integer.parseInt(bm5.getBm5_5()));
buildData.setCapital(Integer.parseInt(bm5.getBm5_6()));
buildData.setBuRewardType(Integer.parseInt(bm5.getBm5_7()));
buildData.setBuRewardNum(Integer.parseInt(bm5.getBm5_8()));
buildData.setBuUnknown09(Integer.parseInt(bm5.getBm5_9()));
buildData.setBuVictoryPoint(Integer.parseInt(bm5.getBm5_10()));
buildData.setBuEvent(Integer.parseInt(bm5.getBm5_11()));
buildData.setBuUnknown12(Integer.parseInt(bm5.getBm5_12()));
buildData.setBuUnknown13(Integer.parseInt(bm5.getBm5_13()));
buildData.setBuUnknown14(Integer.parseInt(bm5.getBm5_14()));
buildData.setBuUnknown15(Integer.parseInt(bm5.getBm5_15()));
buildData.setBuUnknown16(Integer.parseInt(bm5.getBm5_16()));
buildData.setBuFireLevel(Integer.parseInt(bm5.getBm5_17()));
buildData.setBuFireTime(Integer.parseInt(bm5.getBm5_18()));
buildData.setBuAirDefense(Integer.parseInt(bm5.getBm5_19()));
buildData.setBuRadar(Integer.parseInt(bm5.getBm5_20()));
buildData.setBuFactoryLv(Integer.parseInt(bm5.getBm5_21()));
buildData.setBuResearchLv(Integer.parseInt(bm5.getBm5_22()));
buildData.setBuHospitalLv(Integer.parseInt(bm5.getBm5_23()));
buildData.setBuAirportLv(Integer.parseInt(bm5.getBm5_24()));
buildData.setBuMissileLv(Integer.parseInt(bm5.getBm5_25()));
buildData.setBuNuclearLv(Integer.parseInt(bm5.getBm5_26()));
buildData.setBuUnknown27(Integer.parseInt(bm5.getBm5_27()));
buildData.setBuUnknown28(Integer.parseInt(bm5.getBm5_28()));
this.buildDatas.add(buildData);
 }
 }
public class ArmyData {
private Integer baPosition;
public Integer getBaPosition(){ return baPosition;}
public void setBaPosition(Integer baPosition){ this.baPosition=baPosition;}
private Integer baType;
public Integer getBaType(){ return baType;}
public void setBaType(Integer baType){ this.baType=baType;}
private Integer baLevel;
public Integer getBaLevel(){ return baLevel;}
public void setBaLevel(Integer baLevel){ this.baLevel=baLevel;}
private Integer baNum;
public Integer getBaNum(){ return baNum;}
public void setBaNum(Integer baNum){ this.baNum=baNum;}
private Integer baFace;
public Integer getBaFace(){ return baFace;}
public void setBaFace(Integer baFace){ this.baFace=baFace;}
private Integer baMobility;
public Integer getBaMobility(){ return baMobility;}
public void setBaMobility(Integer baMobility){ this.baMobility=baMobility;}
private Integer baUnknown07;
public Integer getBaUnknown07(){ return baUnknown07;}
public void setBaUnknown07(Integer baUnknown07){ this.baUnknown07=baUnknown07;}
private Integer baArmyExp;
public Integer getBaArmyExp(){ return baArmyExp;}
public void setBaArmyExp(Integer baArmyExp){ this.baArmyExp=baArmyExp;}
private Integer baHpPercent;
public Integer getBaHpPercent(){ return baHpPercent;}
public void setBaHpPercent(Integer baHpPercent){ this.baHpPercent=baHpPercent;}
private Integer baHpNow;
public Integer getBaHpNow(){ return baHpNow;}
public void setBaHpNow(Integer baHpNow){ this.baHpNow=baHpNow;}
private Integer baHpMax;
public Integer getBaHpMax(){ return baHpMax;}
public void setBaHpMax(Integer baHpMax){ this.baHpMax=baHpMax;}
private Integer baGeneralId;
public Integer getBaGeneralId(){ return baGeneralId;}
public void setBaGeneralId(Integer baGeneralId){ this.baGeneralId=baGeneralId;}
private Integer baGeneralLevel;
public Integer getBaGeneralLevel(){ return baGeneralLevel;}
public void setBaGeneralLevel(Integer baGeneralLevel){ this.baGeneralLevel=baGeneralLevel;}
private Integer baGeneralColor;
public Integer getBaGeneralColor(){ return baGeneralColor;}
public void setBaGeneralColor(Integer baGeneralColor){ this.baGeneralColor=baGeneralColor;}
private Integer baMedalId1;
public Integer getBaMedalId1(){ return baMedalId1;}
public void setBaMedalId1(Integer baMedalId1){ this.baMedalId1=baMedalId1;}
private Integer baMedalId2;
public Integer getBaMedalId2(){ return baMedalId2;}
public void setBaMedalId2(Integer baMedalId2){ this.baMedalId2=baMedalId2;}
private Integer baMedalId3;
public Integer getBaMedalId3(){ return baMedalId3;}
public void setBaMedalId3(Integer baMedalId3){ this.baMedalId3=baMedalId3;}
private Integer baSkillLevel1;
public Integer getBaSkillLevel1(){ return baSkillLevel1;}
public void setBaSkillLevel1(Integer baSkillLevel1){ this.baSkillLevel1=baSkillLevel1;}
private Integer baSkillLevel2;
public Integer getBaSkillLevel2(){ return baSkillLevel2;}
public void setBaSkillLevel2(Integer baSkillLevel2){ this.baSkillLevel2=baSkillLevel2;}
private Integer baSkillLevel3;
public Integer getBaSkillLevel3(){ return baSkillLevel3;}
public void setBaSkillLevel3(Integer baSkillLevel3){ this.baSkillLevel3=baSkillLevel3;}
private Integer baSkillLevel4;
public Integer getBaSkillLevel4(){ return baSkillLevel4;}
public void setBaSkillLevel4(Integer baSkillLevel4){ this.baSkillLevel4=baSkillLevel4;}
private Integer baSkillLevel5;
public Integer getBaSkillLevel5(){ return baSkillLevel5;}
public void setBaSkillLevel5(Integer baSkillLevel5){ this.baSkillLevel5=baSkillLevel5;}
private Integer baVP;
public Integer getBaVP(){ return baVP;}
public void setBaVP(Integer baVP){ this.baVP=baVP;}
private Integer baAI;
public Integer getBaAI(){ return baAI;}
public void setBaAI(Integer baAI){ this.baAI=baAI;}
private Integer baUnknown25;
public Integer getBaUnknown25(){ return baUnknown25;}
public void setBaUnknown25(Integer baUnknown25){ this.baUnknown25=baUnknown25;}
private Integer baUnknown26;
public Integer getBaUnknown26(){ return baUnknown26;}
public void setBaUnknown26(Integer baUnknown26){ this.baUnknown26=baUnknown26;}
private Integer baMovePoint;
public Integer getBaMovePoint(){ return baMovePoint;}
public void setBaMovePoint(Integer baMovePoint){ this.baMovePoint=baMovePoint;}
private Integer baUnknown28;
public Integer getBaUnknown28(){ return baUnknown28;}
public void setBaUnknown28(Integer baUnknown28){ this.baUnknown28=baUnknown28;}
private Integer baUnknown29;
public Integer getBaUnknown29(){ return baUnknown29;}
public void setBaUnknown29(Integer baUnknown29){ this.baUnknown29=baUnknown29;}
private Integer baZeros;
public Integer getBaZeros(){ return baZeros;}
public void setBaZeros(Integer baZeros){ this.baZeros=baZeros;}
private Integer baMorale;
public Integer getBaMorale(){ return baMorale;}
public void setBaMorale(Integer baMorale){ this.baMorale=baMorale;}
private Integer baMoraleTime;
public Integer getBaMoraleTime(){ return baMoraleTime;}
public void setBaMoraleTime(Integer baMoraleTime){ this.baMoraleTime=baMoraleTime;}
private Integer baEvent;
public Integer getBaEvent(){ return baEvent;}
public void setBaEvent(Integer baEvent){ this.baEvent=baEvent;}
private Integer baUnknown34;
public Integer getBaUnknown34(){ return baUnknown34;}
public void setBaUnknown34(Integer baUnknown34){ this.baUnknown34=baUnknown34;}
private Integer baTrigger;
public Integer getBaTrigger(){ return baTrigger;}
public void setBaTrigger(Integer baTrigger){ this.baTrigger=baTrigger;}
 }
public void setArmyData(List<BtlModule6> bm6s){
if (armyDatas==null){armyDatas=new ArrayList<ArmyData>();}else{this.armyDatas.clear();}
for(BtlModule6 bm6:bm6s) {
ArmyData armyData=new ArmyData();
armyData.setBaPosition(Integer.parseInt(bm6.getBm6_1()));
armyData.setBaType(Integer.parseInt(bm6.getBm6_2()));
armyData.setBaLevel(Integer.parseInt(bm6.getBm6_3()));
armyData.setBaNum(Integer.parseInt(bm6.getBm6_4()));
armyData.setBaFace(Integer.parseInt(bm6.getBm6_5()));
armyData.setBaMobility(Integer.parseInt(bm6.getBm6_6()));
armyData.setBaUnknown07(Integer.parseInt(bm6.getBm6_7()));
armyData.setBaArmyExp(Integer.parseInt(bm6.getBm6_8()));
armyData.setBaHpPercent(Integer.parseInt(bm6.getBm6_9()));
armyData.setBaHpNow(Integer.parseInt(bm6.getBm6_10()));
armyData.setBaHpMax(Integer.parseInt(bm6.getBm6_11()));
armyData.setBaGeneralId(Integer.parseInt(bm6.getBm6_12()));
armyData.setBaGeneralLevel(Integer.parseInt(bm6.getBm6_13()));
armyData.setBaGeneralColor(Integer.parseInt(bm6.getBm6_14()));
armyData.setBaMedalId1(Integer.parseInt(bm6.getBm6_15()));
armyData.setBaMedalId2(Integer.parseInt(bm6.getBm6_16()));
armyData.setBaMedalId3(Integer.parseInt(bm6.getBm6_17()));
armyData.setBaSkillLevel1(Integer.parseInt(bm6.getBm6_18()));
armyData.setBaSkillLevel2(Integer.parseInt(bm6.getBm6_19()));
armyData.setBaSkillLevel3(Integer.parseInt(bm6.getBm6_20()));
armyData.setBaSkillLevel4(Integer.parseInt(bm6.getBm6_21()));
armyData.setBaSkillLevel5(Integer.parseInt(bm6.getBm6_22()));
armyData.setBaVP(Integer.parseInt(bm6.getBm6_23()));
armyData.setBaAI(Integer.parseInt(bm6.getBm6_24()));
armyData.setBaUnknown25(Integer.parseInt(bm6.getBm6_25()));
armyData.setBaUnknown26(Integer.parseInt(bm6.getBm6_26()));
armyData.setBaMovePoint(Integer.parseInt(bm6.getBm6_27()));
armyData.setBaUnknown28(Integer.parseInt(bm6.getBm6_28()));
armyData.setBaUnknown29(Integer.parseInt(bm6.getBm6_29()));
armyData.setBaZeros(Integer.parseInt(bm6.getBm6_30()));
armyData.setBaMorale(Integer.parseInt(bm6.getBm6_31()));
armyData.setBaMoraleTime(Integer.parseInt(bm6.getBm6_32()));
armyData.setBaEvent(Integer.parseInt(bm6.getBm6_33()));
armyData.setBaUnknown34(Integer.parseInt(bm6.getBm6_34()));
armyData.setBaTrigger(Integer.parseInt(bm6.getBm6_35()));
this.armyDatas.add(armyData);
 }
 }
public class TrapData {
private Integer bmiPosition;
public Integer getBmiPosition(){ return bmiPosition;}
public void setBmiPosition(Integer bmiPosition){ this.bmiPosition=bmiPosition;}
private Integer bmiLegion;
public Integer getBmiLegion(){ return bmiLegion;}
public void setBmiLegion(Integer bmiLegion){ this.bmiLegion=bmiLegion;}
private Integer bmiMinesLv;
public Integer getBmiMinesLv(){ return bmiMinesLv;}
public void setBmiMinesLv(Integer bmiMinesLv){ this.bmiMinesLv=bmiMinesLv;}
private Integer bmiMinesHp;
public Integer getBmiMinesHp(){ return bmiMinesHp;}
public void setBmiMinesHp(Integer bmiMinesHp){ this.bmiMinesHp=bmiMinesHp;}
private Integer bmiZeros;
public Integer getBmiZeros(){ return bmiZeros;}
public void setBmiZeros(Integer bmiZeros){ this.bmiZeros=bmiZeros;}
 }
public void setTrapData(List<BtlModule7> bm7s){
if (trapDatas==null){trapDatas=new ArrayList<TrapData>();}else{this.trapDatas.clear();}
for(BtlModule7 bm7:bm7s) {
TrapData trapData=new TrapData();
trapData.setBmiPosition(Integer.parseInt(bm7.getBm7_1()));
trapData.setBmiLegion(Integer.parseInt(bm7.getBm7_2()));
trapData.setBmiMinesLv(Integer.parseInt(bm7.getBm7_3()));
trapData.setBmiMinesHp(Integer.parseInt(bm7.getBm7_4()));
trapData.setBmiZeros(Integer.parseInt(bm7.getBm7_5()));
this.trapDatas.add(trapData);
 }
 }
public class PlanData {
private Integer bhId;
public Integer getBhId(){ return bhId;}
public void setBhId(Integer bhId){ this.bhId=bhId;}
private Integer bhType;
public Integer getBhType(){ return bhType;}
public void setBhType(Integer bhType){ this.bhType=bhType;}
private Integer bhTime;
public Integer getBhTime(){ return bhTime;}
public void setBhTime(Integer bhTime){ this.bhTime=bhTime;}
private Integer bhValue;
public Integer getBhValue(){ return bhValue;}
public void setBhValue(Integer bhValue){ this.bhValue=bhValue;}
 }
public void setPlanData(List<BtlModule8> bm8s){
if (planDatas==null){planDatas=new ArrayList<PlanData>();}else{this.planDatas.clear();}
for(BtlModule8 bm8:bm8s) {
PlanData planData=new PlanData();
planData.setBhId(Integer.parseInt(bm8.getBm8_1()));
planData.setBhType(Integer.parseInt(bm8.getBm8_2()));
planData.setBhTime(Integer.parseInt(bm8.getBm8_3()));
planData.setBhValue(Integer.parseInt(bm8.getBm8_4()));
this.planDatas.add(planData);
 }
 }
public class WeatherData {
private Integer bwId;
public Integer getBwId(){ return bwId;}
public void setBwId(Integer bwId){ this.bwId=bwId;}
private Integer bwUnknown02;
public Integer getBwUnknown02(){ return bwUnknown02;}
public void setBwUnknown02(Integer bwUnknown02){ this.bwUnknown02=bwUnknown02;}
private Integer bwStartTime;
public Integer getBwStartTime(){ return bwStartTime;}
public void setBwStartTime(Integer bwStartTime){ this.bwStartTime=bwStartTime;}
private Integer bwLength;
public Integer getBwLength(){ return bwLength;}
public void setBwLength(Integer bwLength){ this.bwLength=bwLength;}
 }
public void setWeatherData(List<BtlModule9> bm9s){
if (weatherDatas==null){weatherDatas=new ArrayList<WeatherData>();}else{this.weatherDatas.clear();}
for(BtlModule9 bm9:bm9s) {
WeatherData weatherData=new WeatherData();
weatherData.setBwId(Integer.parseInt(bm9.getBm9_1()));
weatherData.setBwUnknown02(Integer.parseInt(bm9.getBm9_2()));
weatherData.setBwStartTime(Integer.parseInt(bm9.getBm9_3()));
weatherData.setBwLength(Integer.parseInt(bm9.getBm9_4()));
this.weatherDatas.add(weatherData);
 }
 }
public class EventData {
private Integer beId;
public Integer getBeId(){ return beId;}
public void setBeId(Integer beId){ this.beId=beId;}
private Integer beNextid;
public Integer getBeNextid(){ return beNextid;}
public void setBeNextid(Integer beNextid){ this.beNextid=beNextid;}
private Integer beTrigger;
public Integer getBeTrigger(){ return beTrigger;}
public void setBeTrigger(Integer beTrigger){ this.beTrigger=beTrigger;}
private Integer beType;
public Integer getBeType(){ return beType;}
public void setBeType(Integer beType){ this.beType=beType;}
private Integer beUnknown05;
public Integer getBeUnknown05(){ return beUnknown05;}
public void setBeUnknown05(Integer beUnknown05){ this.beUnknown05=beUnknown05;}
private Integer beLegion;
public Integer getBeLegion(){ return beLegion;}
public void setBeLegion(Integer beLegion){ this.beLegion=beLegion;}
private Integer beValue;
public Integer getBeValue(){ return beValue;}
public void setBeValue(Integer beValue){ this.beValue=beValue;}
private Integer beZero;
public Integer getBeZero(){ return beZero;}
public void setBeZero(Integer beZero){ this.beZero=beZero;}
private Integer beTime;
public Integer getBeTime(){ return beTime;}
public void setBeTime(Integer beTime){ this.beTime=beTime;}
private Integer beDialogue;
public Integer getBeDialogue(){ return beDialogue;}
public void setBeDialogue(Integer beDialogue){ this.beDialogue=beDialogue;}
private String beEnding;
public String getBeEnding(){ return beEnding;}
public void setBeEnding(String beEnding){ this.beEnding=beEnding;}
 }
public void setEventData(List<BtlModule10> bm10s){
if (eventDatas==null){eventDatas=new ArrayList<EventData>();}else{this.eventDatas.clear();}
for(BtlModule10 bm10:bm10s) {
EventData eventData=new EventData();
eventData.setBeId(Integer.parseInt(bm10.getBm10_1()));
eventData.setBeNextid(Integer.parseInt(bm10.getBm10_2()));
eventData.setBeTrigger(Integer.parseInt(bm10.getBm10_3()));
eventData.setBeType(Integer.parseInt(bm10.getBm10_4()));
eventData.setBeUnknown05(Integer.parseInt(bm10.getBm10_5()));
eventData.setBeLegion(Integer.parseInt(bm10.getBm10_6()));
eventData.setBeValue(Integer.parseInt(bm10.getBm10_7()));
eventData.setBeZero(Integer.parseInt(bm10.getBm10_8()));
eventData.setBeTime(Integer.parseInt(bm10.getBm10_9()));
eventData.setBeDialogue(Integer.parseInt(bm10.getBm10_10()));
eventData.setBeEnding(bm10.getBm10_11());
this.eventDatas.add(eventData);
 }
 }
public class ReliefData {
private Integer bsaPosition;
public Integer getBsaPosition(){ return bsaPosition;}
public void setBsaPosition(Integer bsaPosition){ this.bsaPosition=bsaPosition;}
private Integer bsaType;
public Integer getBsaType(){ return bsaType;}
public void setBsaType(Integer bsaType){ this.bsaType=bsaType;}
private Integer bsaLevel;
public Integer getBsaLevel(){ return bsaLevel;}
public void setBsaLevel(Integer bsaLevel){ this.bsaLevel=bsaLevel;}
private Integer bsanum;
public Integer getBsanum(){ return bsanum;}
public void setBsanum(Integer bsanum){ this.bsanum=bsanum;}
private Integer bsaShip;
public Integer getBsaShip(){ return bsaShip;}
public void setBsaShip(Integer bsaShip){ this.bsaShip=bsaShip;}
private Integer bsaFace;
public Integer getBsaFace(){ return bsaFace;}
public void setBsaFace(Integer bsaFace){ this.bsaFace=bsaFace;}
private Integer bsaUnknown07;
public Integer getBsaUnknown07(){ return bsaUnknown07;}
public void setBsaUnknown07(Integer bsaUnknown07){ this.bsaUnknown07=bsaUnknown07;}
private Integer bsaGeneralId;
public Integer getBsaGeneralId(){ return bsaGeneralId;}
public void setBsaGeneralId(Integer bsaGeneralId){ this.bsaGeneralId=bsaGeneralId;}
private Integer bsaGeneralLevel;
public Integer getBsaGeneralLevel(){ return bsaGeneralLevel;}
public void setBsaGeneralLevel(Integer bsaGeneralLevel){ this.bsaGeneralLevel=bsaGeneralLevel;}
private Integer bsaGeneralColor;
public Integer getBsaGeneralColor(){ return bsaGeneralColor;}
public void setBsaGeneralColor(Integer bsaGeneralColor){ this.bsaGeneralColor=bsaGeneralColor;}
private Integer bsaSkillLevel1;
public Integer getBsaSkillLevel1(){ return bsaSkillLevel1;}
public void setBsaSkillLevel1(Integer bsaSkillLevel1){ this.bsaSkillLevel1=bsaSkillLevel1;}
private Integer bsaSkillLevel2;
public Integer getBsaSkillLevel2(){ return bsaSkillLevel2;}
public void setBsaSkillLevel2(Integer bsaSkillLevel2){ this.bsaSkillLevel2=bsaSkillLevel2;}
private Integer bsaSkillLevel3;
public Integer getBsaSkillLevel3(){ return bsaSkillLevel3;}
public void setBsaSkillLevel3(Integer bsaSkillLevel3){ this.bsaSkillLevel3=bsaSkillLevel3;}
private Integer bsaSkillLevel4;
public Integer getBsaSkillLevel4(){ return bsaSkillLevel4;}
public void setBsaSkillLevel4(Integer bsaSkillLevel4){ this.bsaSkillLevel4=bsaSkillLevel4;}
private Integer bsaSkillLevel5;
public Integer getBsaSkillLevel5(){ return bsaSkillLevel5;}
public void setBsaSkillLevel5(Integer bsaSkillLevel5){ this.bsaSkillLevel5=bsaSkillLevel5;}
private Integer bsaMedalId1;
public Integer getBsaMedalId1(){ return bsaMedalId1;}
public void setBsaMedalId1(Integer bsaMedalId1){ this.bsaMedalId1=bsaMedalId1;}
private Integer bsaMedalId2;
public Integer getBsaMedalId2(){ return bsaMedalId2;}
public void setBsaMedalId2(Integer bsaMedalId2){ this.bsaMedalId2=bsaMedalId2;}
private Integer bsaMedalId3;
public Integer getBsaMedalId3(){ return bsaMedalId3;}
public void setBsaMedalId3(Integer bsaMedalId3){ this.bsaMedalId3=bsaMedalId3;}
private Integer bsaLegion;
public Integer getBsaLegion(){ return bsaLegion;}
public void setBsaLegion(Integer bsaLegion){ this.bsaLegion=bsaLegion;}
private Integer bsaTime;
public Integer getBsaTime(){ return bsaTime;}
public void setBsaTime(Integer bsaTime){ this.bsaTime=bsaTime;}
 }
public void setReliefData(List<BtlModule11> bm11s){
if (reliefDatas==null){reliefDatas=new ArrayList<ReliefData>();}else{this.reliefDatas.clear();}
for(BtlModule11 bm11:bm11s) {
ReliefData reliefData=new ReliefData();
reliefData.setBsaPosition(Integer.parseInt(bm11.getBm11_1()));
reliefData.setBsaType(Integer.parseInt(bm11.getBm11_2()));
reliefData.setBsaLevel(Integer.parseInt(bm11.getBm11_3()));
reliefData.setBsanum(Integer.parseInt(bm11.getBm11_4()));
reliefData.setBsaShip(Integer.parseInt(bm11.getBm11_5()));
reliefData.setBsaFace(Integer.parseInt(bm11.getBm11_6()));
reliefData.setBsaUnknown07(Integer.parseInt(bm11.getBm11_7()));
reliefData.setBsaGeneralId(Integer.parseInt(bm11.getBm11_8()));
reliefData.setBsaGeneralLevel(Integer.parseInt(bm11.getBm11_9()));
reliefData.setBsaGeneralColor(Integer.parseInt(bm11.getBm11_10()));
reliefData.setBsaSkillLevel1(Integer.parseInt(bm11.getBm11_11()));
reliefData.setBsaSkillLevel2(Integer.parseInt(bm11.getBm11_12()));
reliefData.setBsaSkillLevel3(Integer.parseInt(bm11.getBm11_13()));
reliefData.setBsaSkillLevel4(Integer.parseInt(bm11.getBm11_14()));
reliefData.setBsaSkillLevel5(Integer.parseInt(bm11.getBm11_15()));
reliefData.setBsaMedalId1(Integer.parseInt(bm11.getBm11_16()));
reliefData.setBsaMedalId2(Integer.parseInt(bm11.getBm11_17()));
reliefData.setBsaMedalId3(Integer.parseInt(bm11.getBm11_18()));
reliefData.setBsaLegion(Integer.parseInt(bm11.getBm11_19()));
reliefData.setBsaTime(Integer.parseInt(bm11.getBm11_20()));
this.reliefDatas.add(reliefData);
 }
 }
public class AirData {
private Integer baaPosition;
public Integer getBaaPosition(){ return baaPosition;}
public void setBaaPosition(Integer baaPosition){ this.baaPosition=baaPosition;}
private Integer baaType;
public Integer getBaaType(){ return baaType;}
public void setBaaType(Integer baaType){ this.baaType=baaType;}
private Integer baaNuclear;
public Integer getBaaNuclear(){ return baaNuclear;}
public void setBaaNuclear(Integer baaNuclear){ this.baaNuclear=baaNuclear;}
private Integer baaLegion;
public Integer getBaaLegion(){ return baaLegion;}
public void setBaaLegion(Integer baaLegion){ this.baaLegion=baaLegion;}
private Integer baaTime;
public Integer getBaaTime(){ return baaTime;}
public void setBaaTime(Integer baaTime){ this.baaTime=baaTime;}
 }
public void setAirData(List<BtlModule12> bm12s){
if (airDatas==null){airDatas=new ArrayList<AirData>();}else{this.airDatas.clear();}
for(BtlModule12 bm12:bm12s) {
AirData airData=new AirData();
airData.setBaaPosition(Integer.parseInt(bm12.getBm12_1()));
airData.setBaaType(Integer.parseInt(bm12.getBm12_2()));
airData.setBaaNuclear(Integer.parseInt(bm12.getBm12_3()));
airData.setBaaLegion(Integer.parseInt(bm12.getBm12_4()));
airData.setBaaTime(Integer.parseInt(bm12.getBm12_5()));
this.airDatas.add(airData);
 }
 }
public class PlaceAData {
private Integer bsPosition;
public Integer getBsPosition(){ return bsPosition;}
public void setBsPosition(Integer bsPosition){ this.bsPosition=bsPosition;}
private Integer bsUnknown02;
public Integer getBsUnknown02(){ return bsUnknown02;}
public void setBsUnknown02(Integer bsUnknown02){ this.bsUnknown02=bsUnknown02;}
private Integer bsFace;
public Integer getBsFace(){ return bsFace;}
public void setBsFace(Integer bsFace){ this.bsFace=bsFace;}
private Integer bsId;
public Integer getBsId(){ return bsId;}
public void setBsId(Integer bsId){ this.bsId=bsId;}
private Integer bsShip;
public Integer getBsShip(){ return bsShip;}
public void setBsShip(Integer bsShip){ this.bsShip=bsShip;}
private Integer bsUnknown06;
public Integer getBsUnknown06(){ return bsUnknown06;}
public void setBsUnknown06(Integer bsUnknown06){ this.bsUnknown06=bsUnknown06;}
 }
public void setPlaceAData(List<BtlModule13> bm13s){
if (placeADatas==null){placeADatas=new ArrayList<PlaceAData>();}else{this.placeADatas.clear();}
for(BtlModule13 bm13:bm13s) {
PlaceAData placeAData=new PlaceAData();
placeAData.setBsPosition(Integer.parseInt(bm13.getBm13_1()));
placeAData.setBsUnknown02(Integer.parseInt(bm13.getBm13_2()));
placeAData.setBsFace(Integer.parseInt(bm13.getBm13_3()));
placeAData.setBsId(Integer.parseInt(bm13.getBm13_4()));
placeAData.setBsShip(Integer.parseInt(bm13.getBm13_5()));
placeAData.setBsUnknown06(Integer.parseInt(bm13.getBm13_6()));
this.placeADatas.add(placeAData);
 }
 }
public class PlaceBData {
private Integer bsPosition;
public Integer getBsPosition(){ return bsPosition;}
public void setBsPosition(Integer bsPosition){ this.bsPosition=bsPosition;}
private Integer bsUnknown02;
public Integer getBsUnknown02(){ return bsUnknown02;}
public void setBsUnknown02(Integer bsUnknown02){ this.bsUnknown02=bsUnknown02;}
private Integer bsFace;
public Integer getBsFace(){ return bsFace;}
public void setBsFace(Integer bsFace){ this.bsFace=bsFace;}
private Integer bsId;
public Integer getBsId(){ return bsId;}
public void setBsId(Integer bsId){ this.bsId=bsId;}
private Integer bsShip;
public Integer getBsShip(){ return bsShip;}
public void setBsShip(Integer bsShip){ this.bsShip=bsShip;}
private Integer bsUnknown06;
public Integer getBsUnknown06(){ return bsUnknown06;}
public void setBsUnknown06(Integer bsUnknown06){ this.bsUnknown06=bsUnknown06;}
 }
public void setPlaceBData(List<BtlModule14> bm14s){
if (placeBDatas==null){placeBDatas=new ArrayList<PlaceBData>();}else{this.placeBDatas.clear();}
for(BtlModule14 bm14:bm14s) {
PlaceBData placeBData=new PlaceBData();
placeBData.setBsPosition(Integer.parseInt(bm14.getBm14_1()));
placeBData.setBsUnknown02(Integer.parseInt(bm14.getBm14_2()));
placeBData.setBsFace(Integer.parseInt(bm14.getBm14_3()));
placeBData.setBsId(Integer.parseInt(bm14.getBm14_4()));
placeBData.setBsShip(Integer.parseInt(bm14.getBm14_5()));
placeBData.setBsUnknown06(Integer.parseInt(bm14.getBm14_6()));
this.placeBDatas.add(placeBData);
 }
 }
public class CapitalData {
private Integer bfPosition;
public Integer getBfPosition(){ return bfPosition;}
public void setBfPosition(Integer bfPosition){ this.bfPosition=bfPosition;}
private Integer bfUnknown02;
public Integer getBfUnknown02(){ return bfUnknown02;}
public void setBfUnknown02(Integer bfUnknown02){ this.bfUnknown02=bfUnknown02;}
 }
public void setCapitalData(List<BtlModule15> bm15s){
if (capitalDatas==null){capitalDatas=new ArrayList<CapitalData>();}else{this.capitalDatas.clear();}
for(BtlModule15 bm15:bm15s) {
CapitalData capitalData=new CapitalData();
capitalData.setBfPosition(Integer.parseInt(bm15.getBm15_1()));
capitalData.setBfUnknown02(Integer.parseInt(bm15.getBm15_2()));
this.capitalDatas.add(capitalData);
 }
 }
public class StrategicData {
private Integer bstLegion;
public Integer getBstLegion(){ return bstLegion;}
public void setBstLegion(Integer bstLegion){ this.bstLegion=bstLegion;}
private Integer bstUnknown02;
public Integer getBstUnknown02(){ return bstUnknown02;}
public void setBstUnknown02(Integer bstUnknown02){ this.bstUnknown02=bstUnknown02;}
private Integer bstTime;
public Integer getBstTime(){ return bstTime;}
public void setBstTime(Integer bstTime){ this.bstTime=bstTime;}
private Integer bstValue;
public Integer getBstValue(){ return bstValue;}
public void setBstValue(Integer bstValue){ this.bstValue=bstValue;}
 }
public void setStrategicData(List<BtlModule16> bm16s){
if (strategicDatas==null){strategicDatas=new ArrayList<StrategicData>();}else{this.strategicDatas.clear();}
for(BtlModule16 bm16:bm16s) {
StrategicData strategicData=new StrategicData();
strategicData.setBstLegion(Integer.parseInt(bm16.getBm16_1()));
strategicData.setBstUnknown02(Integer.parseInt(bm16.getBm16_2()));
strategicData.setBstTime(Integer.parseInt(bm16.getBm16_3()));
strategicData.setBstValue(Integer.parseInt(bm16.getBm16_4()));
this.strategicDatas.add(strategicData);
 }
 }
public class AirSData {
private Integer bnaType;
public Integer getBnaType(){ return bnaType;}
public void setBnaType(Integer bnaType){ this.bnaType=bnaType;}
private Integer bnaNuclear;
public Integer getBnaNuclear(){ return bnaNuclear;}
public void setBnaNuclear(Integer bnaNuclear){ this.bnaNuclear=bnaNuclear;}
private Integer bnaLegion;
public Integer getBnaLegion(){ return bnaLegion;}
public void setBnaLegion(Integer bnaLegion){ this.bnaLegion=bnaLegion;}
private Integer bnaTime;
public Integer getBnaTime(){ return bnaTime;}
public void setBnaTime(Integer bnaTime){ this.bnaTime=bnaTime;}
 }
public void setAirSData(List<BtlModule17> bm17s){
if (airSDatas==null){airSDatas=new ArrayList<AirSData>();}else{this.airSDatas.clear();}
for(BtlModule17 bm17:bm17s) {
AirSData airSData=new AirSData();
airSData.setBnaType(Integer.parseInt(bm17.getBm17_1()));
airSData.setBnaNuclear(Integer.parseInt(bm17.getBm17_2()));
airSData.setBnaLegion(Integer.parseInt(bm17.getBm17_3()));
airSData.setBnaTime(Integer.parseInt(bm17.getBm17_4()));
this.airSDatas.add(airSData);
 }
 }
 public BTLDAO getBTL() { BTLDAO btl=new BTLDAO();btl.init();
initBm0(btl);
initBm1(btl);
initBm2(btl);
initBm3(btl);
initBm4(btl);
initBm5(btl);
initBm6(btl);
initBm7(btl);
initBm8(btl);
initBm9(btl);
initBm10(btl);
initBm11(btl);
initBm12(btl);
initBm13(btl);
initBm14(btl);
initBm15(btl);
initBm16(btl);
initBm17(btl);
  return btl;}
private void initBm0(BTLDAO btl){
 btl.getBm0().setBm0_1(masterData.biBtlVersion+"");
 btl.getBm0().setBm0_2(masterData.biMapSource+"");
 btl.getBm0().setBm0_3(masterData.biMapCutx+"");
 btl.getBm0().setBm0_4(masterData.biMapCuty+"");
 btl.getBm0().setBm0_5(masterData.biMapx+"");
 btl.getBm0().setBm0_6(masterData.biMapy+"");
 btl.getBm0().setBm0_7(masterData.biLegionNum+"");
 btl.getBm0().setBm0_8(masterData.biBuildingNum+"");
 btl.getBm0().setBm0_9(masterData.biUnitsNum+"");
 btl.getBm0().setBm0_10(masterData.biMovingNum+"");
 btl.getBm0().setBm0_11(masterData.biEventsNum+"");
 btl.getBm0().setBm0_12(masterData.biWeatherNum+"");
 btl.getBm0().setBm0_13(masterData.biTask+"");
 btl.getBm0().setBm0_14(masterData.biVictoryRound+"");
 btl.getBm0().setBm0_15(masterData.biGreatVictoryRound+"");
 btl.getBm0().setBm0_16(masterData.biSummonSoldiersNum+"");
 btl.getBm0().setBm0_17(masterData.biAirportAirstrikesNum+"");
 btl.getBm0().setBm0_18(masterData.biEntranceA+"");
 btl.getBm0().setBm0_19(masterData.biEntranceB+"");
 btl.getBm0().setBm0_20(masterData.biFlagNum+"");
 btl.getBm0().setBm0_21(masterData.biUnknown20+"");
 btl.getBm0().setBm0_22(masterData.biUnknown21+"");
 btl.getBm0().setBm0_23(masterData.biTerrainsNum+"");
 btl.getBm0().setBm0_24(masterData.biMoneyNeeded+"");
 btl.getBm0().setBm0_25(masterData.biIndustryNeeded+"");
 btl.getBm0().setBm0_26(masterData.biTechNeeded+"");
 btl.getBm0().setBm0_27(masterData.biLandminesNum+"");
 btl.getBm0().setBm0_28(masterData.biUnknown27+"");
 btl.getBm0().setBm0_29(masterData.biStreatgyNum+"");
 btl.getBm0().setBm0_30(masterData.biUnknown29+"");
 btl.getBm0().setBm0_31(masterData.biUnknown30+"");
 btl.getBm0().setBm0_32(masterData.biNationalAirstrikesNum+"");
 }
private void initBm1(BTLDAO btl){
 for(LegionData legionData:legionDatas){
BtlModule1 bm1=new BtlModule1();
bm1.setBm1_1(legionData.blId+"");
bm1.setBm1_2(legionData.blCountry+"");
bm1.setBm1_3(legionData.blMoney+"");
bm1.setBm1_4(legionData.blIndustry+"");
bm1.setBm1_5(legionData.blTech+"");
bm1.setBm1_6(legionData.blControl+"");
bm1.setBm1_7(legionData.blCamp+"");
bm1.setBm1_8(legionData.blDefeat+"");
bm1.setBm1_9(legionData.blMoneyRate+"");
bm1.setBm1_10(legionData.blHpRate+"");
bm1.setBm1_11(legionData.r+"");
bm1.setBm1_12(legionData.g+"");
bm1.setBm1_13(legionData.b+"");
bm1.setBm1_14(legionData.a+"");
bm1.setBm1_15(legionData.blNuclearNum1+"");
bm1.setBm1_16(legionData.blNuclearNum2+"");
bm1.setBm1_17(legionData.blNuclearNum3+"");
bm1.setBm1_18(legionData.blNuclearNum4+"");
bm1.setBm1_19(legionData.blUnknown71+"");
bm1.setBm1_20(legionData.blUnknown72+"");
bm1.setBm1_21(legionData.blUnknown73+"");
bm1.setBm1_22(legionData.blUnknown74+"");
bm1.setBm1_23(legionData.blUnknown75+"");
bm1.setBm1_24(legionData.blUnknown76+"");
bm1.setBm1_25(legionData.blUnknown77+"");
bm1.setBm1_26(legionData.blUnknown78+"");
bm1.setBm1_27(legionData.blUnknown79+"");
bm1.setBm1_28(legionData.blUnknown80+"");
bm1.setBm1_29(legionData.blUnknown81+"");
bm1.setBm1_30(legionData.blUnknown82+"");
bm1.setBm1_31(legionData.blUnknown83+"");
bm1.setBm1_32(legionData.blUnknown84+"");
bm1.setBm1_33(legionData.blUnknown85+"");
bm1.setBm1_34(legionData.blUnknown86+"");
bm1.setBm1_35(legionData.blUnknown87+"");
bm1.setBm1_36(legionData.blUnknown88+"");
bm1.setBm1_37(legionData.blUnknown89+"");
bm1.setBm1_38(legionData.blUnknown90+"");
bm1.setBm1_39(legionData.blUnknown91+"");
bm1.setBm1_40(legionData.blUnknown92+"");
bm1.setBm1_41(legionData.blUnknown93+"");
bm1.setBm1_42(legionData.blUnknown94+"");
bm1.setBm1_43(legionData.blUnknown95+"");
bm1.setBm1_44(legionData.blUnknown96+"");
bm1.setBm1_45(legionData.blUnknown97+"");
bm1.setBm1_46(legionData.blUnknown98+"");
bm1.setBm1_47(legionData.blUnknown99+"");
bm1.setBm1_48(legionData.blUnknown100+"");
bm1.setBm1_49(legionData.blUnknown101+"");
bm1.setBm1_50(legionData.blUnknown102+"");
bm1.setBm1_51(legionData.blUnknown103+"");
bm1.setBm1_52(legionData.blUnknown104+"");
bm1.setBm1_53(legionData.blUnknown105+"");
bm1.setBm1_54(legionData.blUnknown106+"");
bm1.setBm1_55(legionData.blUnknown107+"");
bm1.setBm1_56(legionData.blUnknown108+"");
bm1.setBm1_57(legionData.blUnknown109+"");
bm1.setBm1_58(legionData.blUnknown110+"");
bm1.setBm1_59(legionData.blUnknown111+"");
bm1.setBm1_60(legionData.blUnknown112+"");
bm1.setBm1_61(legionData.blUnknown113+"");
bm1.setBm1_62(legionData.blUnknown114+"");
bm1.setBm1_63(legionData.blUnknown115+"");
bm1.setBm1_64(legionData.blUnknown116+"");
bm1.setBm1_65(legionData.blUnknown117+"");
bm1.setBm1_66(legionData.blUnknown118+"");
bm1.setBm1_67(legionData.blUnknown119+"");
bm1.setBm1_68(legionData.blUnknown120+"");
bm1.setBm1_69(legionData.blUnknown121+"");
bm1.setBm1_70(legionData.blUnknown122+"");
bm1.setBm1_71(legionData.blUnknown123+"");
bm1.setBm1_72(legionData.blUnknown124+"");
bm1.setBm1_73(legionData.blUnknown125+"");
bm1.setBm1_74(legionData.blUnknown126+"");
bm1.setBm1_75(legionData.blUnknown127+"");
bm1.setBm1_76(legionData.blUnknown128+"");
bm1.setBm1_77(legionData.blUnknown129+"");
bm1.setBm1_78(legionData.blUnknown130+"");
btl.getBm1().add(bm1);
 }
 }
private void initBm2(BTLDAO btl){
 for(TerrainData terrainData:terrainDatas){
BtlModule2 bm2=new BtlModule2();
bm2.setBm2_1(terrainData.bmTerrain1Group+"");
bm2.setBm2_2(terrainData.bmTerrain1Id+"");
bm2.setBm2_3(terrainData.bmTerrain1X+"");
bm2.setBm2_4(terrainData.bmTerrain1Y+"");
bm2.setBm2_5(terrainData.bmDoodad1Group+"");
bm2.setBm2_6(terrainData.bmDoodad1Id+"");
bm2.setBm2_7(terrainData.bmDoodad1X+"");
bm2.setBm2_8(terrainData.bmDoodad1Y+"");
bm2.setBm2_9(terrainData.bmDoodad2Group+"");
bm2.setBm2_10(terrainData.bmDoodad2Id+"");
bm2.setBm2_11(terrainData.bmDoodad2X+"");
bm2.setBm2_12(terrainData.bmDoodad2Y+"");
bm2.setBm2_13(terrainData.waterPass+"");
bm2.setBm2_14(terrainData.landPass+"");
bm2.setBm2_15(terrainData.bmUnknown14+"");
bm2.setBm2_16(terrainData.bmUnknown15+"");
btl.getBm2().add(bm2);
 }
 }
private void initBm3(BTLDAO btl){
 for(RegionData regionData:regionDatas){
BtlModule3 bm3=new BtlModule3();
bm3.setBm3_1(regionData.bpProvince+"");
btl.getBm3().add(bm3);
 }
 }
private void initBm4(BTLDAO btl){
 for(BelongData belongData:belongDatas){
BtlModule4 bm4=new BtlModule4();
bm4.setBm4_1(belongData.bbBelong+"");
btl.getBm4().add(bm4);
 }
 }
private void initBm5(BTLDAO btl){
 for(BuildData buildData:buildDatas){
BtlModule5 bm5=new BtlModule5();
bm5.setBm5_1(buildData.buPosition+"");
bm5.setBm5_2(buildData.buAreaid+"");
bm5.setBm5_3(buildData.buType+"");
bm5.setBm5_4(buildData.buStyle+"");
bm5.setBm5_5(buildData.buCityFeature+"");
bm5.setBm5_6(buildData.capital+"");
bm5.setBm5_7(buildData.buRewardType+"");
bm5.setBm5_8(buildData.buRewardNum+"");
bm5.setBm5_9(buildData.buUnknown09+"");
bm5.setBm5_10(buildData.buVictoryPoint+"");
bm5.setBm5_11(buildData.buEvent+"");
bm5.setBm5_12(buildData.buUnknown12+"");
bm5.setBm5_13(buildData.buUnknown13+"");
bm5.setBm5_14(buildData.buUnknown14+"");
bm5.setBm5_15(buildData.buUnknown15+"");
bm5.setBm5_16(buildData.buUnknown16+"");
bm5.setBm5_17(buildData.buFireLevel+"");
bm5.setBm5_18(buildData.buFireTime+"");
bm5.setBm5_19(buildData.buAirDefense+"");
bm5.setBm5_20(buildData.buRadar+"");
bm5.setBm5_21(buildData.buFactoryLv+"");
bm5.setBm5_22(buildData.buResearchLv+"");
bm5.setBm5_23(buildData.buHospitalLv+"");
bm5.setBm5_24(buildData.buAirportLv+"");
bm5.setBm5_25(buildData.buMissileLv+"");
bm5.setBm5_26(buildData.buNuclearLv+"");
bm5.setBm5_27(buildData.buUnknown27+"");
bm5.setBm5_28(buildData.buUnknown28+"");
btl.getBm5().add(bm5);
 }
 }
private void initBm6(BTLDAO btl){
 for(ArmyData armyData:armyDatas){
BtlModule6 bm6=new BtlModule6();
bm6.setBm6_1(armyData.baPosition+"");
bm6.setBm6_2(armyData.baType+"");
bm6.setBm6_3(armyData.baLevel+"");
bm6.setBm6_4(armyData.baNum+"");
bm6.setBm6_5(armyData.baFace+"");
bm6.setBm6_6(armyData.baMobility+"");
bm6.setBm6_7(armyData.baUnknown07+"");
bm6.setBm6_8(armyData.baArmyExp+"");
bm6.setBm6_9(armyData.baHpPercent+"");
bm6.setBm6_10(armyData.baHpNow+"");
bm6.setBm6_11(armyData.baHpMax+"");
bm6.setBm6_12(armyData.baGeneralId+"");
bm6.setBm6_13(armyData.baGeneralLevel+"");
bm6.setBm6_14(armyData.baGeneralColor+"");
bm6.setBm6_15(armyData.baMedalId1+"");
bm6.setBm6_16(armyData.baMedalId2+"");
bm6.setBm6_17(armyData.baMedalId3+"");
bm6.setBm6_18(armyData.baSkillLevel1+"");
bm6.setBm6_19(armyData.baSkillLevel2+"");
bm6.setBm6_20(armyData.baSkillLevel3+"");
bm6.setBm6_21(armyData.baSkillLevel4+"");
bm6.setBm6_22(armyData.baSkillLevel5+"");
bm6.setBm6_23(armyData.baVP+"");
bm6.setBm6_24(armyData.baAI+"");
bm6.setBm6_25(armyData.baUnknown25+"");
bm6.setBm6_26(armyData.baUnknown26+"");
bm6.setBm6_27(armyData.baMovePoint+"");
bm6.setBm6_28(armyData.baUnknown28+"");
bm6.setBm6_29(armyData.baUnknown29+"");
bm6.setBm6_30(armyData.baZeros+"");
bm6.setBm6_31(armyData.baMorale+"");
bm6.setBm6_32(armyData.baMoraleTime+"");
bm6.setBm6_33(armyData.baEvent+"");
bm6.setBm6_34(armyData.baUnknown34+"");
bm6.setBm6_35(armyData.baTrigger+"");
btl.getBm6().add(bm6);
 }
 }
private void initBm7(BTLDAO btl){
 for(TrapData trapData:trapDatas){
BtlModule7 bm7=new BtlModule7();
bm7.setBm7_1(trapData.bmiPosition+"");
bm7.setBm7_2(trapData.bmiLegion+"");
bm7.setBm7_3(trapData.bmiMinesLv+"");
bm7.setBm7_4(trapData.bmiMinesHp+"");
bm7.setBm7_5(trapData.bmiZeros+"");
btl.getBm7().add(bm7);
 }
 }
private void initBm8(BTLDAO btl){
 for(PlanData planData:planDatas){
BtlModule8 bm8=new BtlModule8();
bm8.setBm8_1(planData.bhId+"");
bm8.setBm8_2(planData.bhType+"");
bm8.setBm8_3(planData.bhTime+"");
bm8.setBm8_4(planData.bhValue+"");
btl.getBm8().add(bm8);
 }
 }
private void initBm9(BTLDAO btl){
 for(WeatherData weatherData:weatherDatas){
BtlModule9 bm9=new BtlModule9();
bm9.setBm9_1(weatherData.bwId+"");
bm9.setBm9_2(weatherData.bwUnknown02+"");
bm9.setBm9_3(weatherData.bwStartTime+"");
bm9.setBm9_4(weatherData.bwLength+"");
btl.getBm9().add(bm9);
 }
 }
private void initBm10(BTLDAO btl){
 for(EventData eventData:eventDatas){
BtlModule10 bm10=new BtlModule10();
bm10.setBm10_1(eventData.beId+"");
bm10.setBm10_2(eventData.beNextid+"");
bm10.setBm10_3(eventData.beTrigger+"");
bm10.setBm10_4(eventData.beType+"");
bm10.setBm10_5(eventData.beUnknown05+"");
bm10.setBm10_6(eventData.beLegion+"");
bm10.setBm10_7(eventData.beValue+"");
bm10.setBm10_8(eventData.beZero+"");
bm10.setBm10_9(eventData.beTime+"");
bm10.setBm10_10(eventData.beDialogue+"");
bm10.setBm10_11(eventData.beEnding+"");
btl.getBm10().add(bm10);
 }
 }
private void initBm11(BTLDAO btl){
 for(ReliefData reliefData:reliefDatas){
BtlModule11 bm11=new BtlModule11();
bm11.setBm11_1(reliefData.bsaPosition+"");
bm11.setBm11_2(reliefData.bsaType+"");
bm11.setBm11_3(reliefData.bsaLevel+"");
bm11.setBm11_4(reliefData.bsanum+"");
bm11.setBm11_5(reliefData.bsaShip+"");
bm11.setBm11_6(reliefData.bsaFace+"");
bm11.setBm11_7(reliefData.bsaUnknown07+"");
bm11.setBm11_8(reliefData.bsaGeneralId+"");
bm11.setBm11_9(reliefData.bsaGeneralLevel+"");
bm11.setBm11_10(reliefData.bsaGeneralColor+"");
bm11.setBm11_11(reliefData.bsaSkillLevel1+"");
bm11.setBm11_12(reliefData.bsaSkillLevel2+"");
bm11.setBm11_13(reliefData.bsaSkillLevel3+"");
bm11.setBm11_14(reliefData.bsaSkillLevel4+"");
bm11.setBm11_15(reliefData.bsaSkillLevel5+"");
bm11.setBm11_16(reliefData.bsaMedalId1+"");
bm11.setBm11_17(reliefData.bsaMedalId2+"");
bm11.setBm11_18(reliefData.bsaMedalId3+"");
bm11.setBm11_19(reliefData.bsaLegion+"");
bm11.setBm11_20(reliefData.bsaTime+"");
btl.getBm11().add(bm11);
 }
 }
private void initBm12(BTLDAO btl){
 for(AirData airData:airDatas){
BtlModule12 bm12=new BtlModule12();
bm12.setBm12_1(airData.baaPosition+"");
bm12.setBm12_2(airData.baaType+"");
bm12.setBm12_3(airData.baaNuclear+"");
bm12.setBm12_4(airData.baaLegion+"");
bm12.setBm12_5(airData.baaTime+"");
btl.getBm12().add(bm12);
 }
 }
private void initBm13(BTLDAO btl){
 for(PlaceAData placeAData:placeADatas){
BtlModule13 bm13=new BtlModule13();
bm13.setBm13_1(placeAData.bsPosition+"");
bm13.setBm13_2(placeAData.bsUnknown02+"");
bm13.setBm13_3(placeAData.bsFace+"");
bm13.setBm13_4(placeAData.bsId+"");
bm13.setBm13_5(placeAData.bsShip+"");
bm13.setBm13_6(placeAData.bsUnknown06+"");
btl.getBm13().add(bm13);
 }
 }
private void initBm14(BTLDAO btl){
 for(PlaceBData placeBData:placeBDatas){
BtlModule14 bm14=new BtlModule14();
bm14.setBm14_1(placeBData.bsPosition+"");
bm14.setBm14_2(placeBData.bsUnknown02+"");
bm14.setBm14_3(placeBData.bsFace+"");
bm14.setBm14_4(placeBData.bsId+"");
bm14.setBm14_5(placeBData.bsShip+"");
bm14.setBm14_6(placeBData.bsUnknown06+"");
btl.getBm14().add(bm14);
 }
 }
private void initBm15(BTLDAO btl){
 for(CapitalData capitalData:capitalDatas){
BtlModule15 bm15=new BtlModule15();
bm15.setBm15_1(capitalData.bfPosition+"");
bm15.setBm15_2(capitalData.bfUnknown02+"");
btl.getBm15().add(bm15);
 }
 }
private void initBm16(BTLDAO btl){
 for(StrategicData strategicData:strategicDatas){
BtlModule16 bm16=new BtlModule16();
bm16.setBm16_1(strategicData.bstLegion+"");
bm16.setBm16_2(strategicData.bstUnknown02+"");
bm16.setBm16_3(strategicData.bstTime+"");
bm16.setBm16_4(strategicData.bstValue+"");
btl.getBm16().add(bm16);
 }
 }
private void initBm17(BTLDAO btl){
 for(AirSData airSData:airSDatas){
BtlModule17 bm17=new BtlModule17();
bm17.setBm17_1(airSData.bnaType+"");
bm17.setBm17_2(airSData.bnaNuclear+"");
bm17.setBm17_3(airSData.bnaLegion+"");
bm17.setBm17_4(airSData.bnaTime+"");
btl.getBm17().add(bm17);
 }
 }
 }
效果展示

 

把原来的规则映射类转换为 正式类...可惜我想到的太迟了....mmp

以上是关于23 通用规则的补充转换的主要内容,如果未能解决你的问题,请参考以下文章

JS学习记录(补充一)

VSCode 配置 用户自定义代码片段 自定义自动代码补充

熟练应用snat和dnat,掌握公网私网之间的连通(补充防火墙规则备份以及如何Linux抓包)

Eclipse 中的通用代码片段或模板

模块和类的通用转换规则,如何oo?

Android - 片段转换时出现黑屏