Package com.wot.shared

Examples of com.wot.shared.DataWnEfficientyTank


                //            for (DataWnEfficientyTank dataWnEfficientyTank : wnEfficientyTank.getData()) {
                //              //dataWnEfficientyTank.
                //             
                //            }
                //for each tank do the sum of frag, dmg,  spot def, xp, wr
                DataWnEfficientyTank dataWnEfficientyTank = hMapWnEfficientyTankHashMap.get(String.valueOf(tankId));
                if (dataWnEfficientyTank != null) {
                  // takes the counts of tanks played on account, and multiplies them by the expected stats to get the account total expected values.
                  totalExpFrag = totalExpFrag + Double.valueOf(dataWnEfficientyTank.getExpFrag()) * tankBattles;
                  totalExpDmg = totalExpDmg + Double.valueOf(dataWnEfficientyTank.getExpDamage()) * tankBattles;
                  totalExpSpot = totalExpSpot + Double.valueOf(dataWnEfficientyTank.getExpSpot()) * tankBattles;
                  totalExpDef = totalExpDef + Double.valueOf(dataWnEfficientyTank.getExpDef()) * tankBattles;
                  totalExpWr = totalExpWr + Double.valueOf(dataWnEfficientyTank.getExpWinRate()) * tankBattles;
                }
             
             
             
                //
 
View Full Code Here


        int tankBattles = dossierToJsonTanks.get_15x15().battles;
        tankBattles = 1;
        int tankId = dossierToJsonTanks.getCompDescr();
       
        //for each tank do the sum of frag, dmg,  spot def, xp, wr
        DataWnEfficientyTank dataWnEfficientyTank = hMapWnEfficientyTankHashMap.get(String.valueOf(tankId));
        // takes the counts of tanks played on account, and multiplies them by the expected stats to get the account total expected values.
       
//        totalExpFrag = totalExpFrag + Double.valueOf(dataWnEfficientyTank.getExpFrag()) * tankBattles;
//        totalExpDmg = totalExpDmg + Double.valueOf(dataWnEfficientyTank.getExpDamage()) * tankBattles;
//        totalExpSpot = totalExpSpot + Double.valueOf(dataWnEfficientyTank.getExpSpot()) * tankBattles;
//        totalExpDef = totalExpDef + Double.valueOf(dataWnEfficientyTank.getExpDef()) * tankBattles;
//        totalExpWr = totalExpWr + Double.valueOf(dataWnEfficientyTank.getExpWinRate()) * tankBattles;
//       
//        System.out.println( " tank title (1 bataille):" + dossierToJsonTanks.getTitle() + "  totalExpFrag:" + totalExpFrag + "  totalExpDmg: " + totalExpDmg + "  totalExpSpot: " + totalExpSpot + "  totalExpDef:" + totalExpDef + "  totalExpWr: " + totalExpWr);

        //avec ,toutes les batailles du tank
        tankBattles = dossierToJsonTanks.get_15x15().battles;
        totalExpFrag = totalExpFrag + Double.valueOf(dataWnEfficientyTank.getExpFrag()) * tankBattles;
        totalExpDmg = totalExpDmg + Double.valueOf(dataWnEfficientyTank.getExpDamage()) * tankBattles;
        totalExpSpot = totalExpSpot + Double.valueOf(dataWnEfficientyTank.getExpSpot()) * tankBattles;
        totalExpDef = totalExpDef + Double.valueOf(dataWnEfficientyTank.getExpDef()) * tankBattles;
        totalExpWr = totalExpWr + Double.valueOf(dataWnEfficientyTank.getExpWinRate()) * tankBattles;
       
       
       
        //Then the actual account totals (your total dmg, frags, spots, def, win-rate) are divided by the total expected values to give the ratios.
        double  rFrag = dossierToJsonTanks.get_15x15().frags /totalExpFrag ;
View Full Code Here

TOP

Related Classes of com.wot.shared.DataWnEfficientyTank

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.