示例#1
0
 public static String AttaquantsDuPrisme(int id, short CarteId, int FightId) {
   String str = "+";
   str += Integer.toString(id, 36);
   for (Entry<Integer, Fight> Fight : World.getCarte(CarteId).get_fights().entrySet()) {
     if (Fight.getValue().get_id() == FightId) {
       for (Fighter fighter : Fight.getValue().getFighters(1)) {
         if (fighter.getPersonnage() == null) continue;
         str += "|";
         str += Integer.toString(fighter.getPersonnage().get_GUID(), 36) + ";";
         str += fighter.getPersonnage().get_name() + ";";
         str += fighter.getPersonnage().get_lvl() + ";";
         str += "0;";
       }
     }
   }
   return str;
 }
示例#2
0
 public static String DefenseursDuPrisme(int id, short CarteId, int FightId) {
   String str = "+";
   String stra = "";
   str += Integer.toString(id, 36);
   for (Entry<Integer, Fight> Fight : World.getCarte(CarteId).get_fights().entrySet()) {
     if (Fight.getValue().get_id() == FightId) {
       for (Fighter fighter : Fight.getValue().getFighters(2)) {
         if (fighter.getPersonnage() == null) continue;
         str += "|";
         str += Integer.toString(fighter.getPersonnage().get_GUID(), 36) + ";";
         str += fighter.getPersonnage().get_name() + ";";
         str += fighter.getPersonnage().get_gfxID() + ";";
         str += fighter.getPersonnage().get_lvl() + ";";
         str += Integer.toString(fighter.getPersonnage().get_color1(), 36) + ";";
         str += Integer.toString(fighter.getPersonnage().get_color2(), 36) + ";";
         str += Integer.toString(fighter.getPersonnage().get_color3(), 36) + ";";
         if (Fight.getValue().getFighters(2).size() > 7) str += "1;";
         else str += "0;";
       }
       stra = str.substring(1);
       stra = "-" + stra;
       Fight.getValue().setDefenseurs(stra);
     }
   }
   return str;
 }