deez

All my codes of Apply_Type6

Jun 8th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.60 KB | None | 0 0
  1.     private static void apply_type0(Fight.Fighter F, Fight fight)
  2.     {
  3.       while ((!stop) && (F.canPlay()))
  4.       {
  5.         stop = true;
  6.       }
  7.     }
  8.  
  9.     private static void apply_type1(Fight.Fighter F, Fight fight)
  10.     {
  11.       int noBoucle = 0;
  12.       while ((!stop) && (F.canPlay()))
  13.       {
  14.         noBoucle++;
  15.         if (noBoucle >= 12) stop = true;
  16.         if (noBoucle > 15) return;
  17.  
  18.         int PDVPER = F.getPDV() * 100 / F.getPDVMAX();
  19.         Fight.Fighter T = getNearestEnnemy(fight, F);
  20.         Fight.Fighter T2 = getNearestFriend(fight, F);
  21.         if (T == null) {
  22.           return;
  23.         }
  24.         if (PDVPER > 15)
  25.         {
  26.           int attack = attackIfPossible(fight, F);
  27.           if (attack == 0)
  28.             continue;
  29.           if (attack == 5) stop = true;
  30.           if (moveToAttackIfPossible(fight, F))
  31.             continue;
  32.           if (buffIfPossible(fight, F, F))
  33.             continue;
  34.           if (HealIfPossible(fight, F, false))
  35.             continue;
  36.           if (buffIfPossible(fight, F, T2))
  37.             continue;
  38.           if (moveNearIfPossible(fight, F, T))
  39.             continue;
  40.           if (invocIfPossible(fight, F))
  41.             continue;
  42.           stop = true;
  43.         }
  44.         else
  45.         {
  46.           if (HealIfPossible(fight, F, true))
  47.             continue;
  48.           int attack = attackIfPossible(fight, F);
  49.           if (attack == 0)
  50.             continue;
  51.           if (attack == 5) stop = true;
  52.           if (buffIfPossible(fight, F, F))
  53.             continue;
  54.           if (HealIfPossible(fight, F, false))
  55.             continue;
  56.           if (buffIfPossible(fight, F, T2))
  57.             continue;
  58.           if (invocIfPossible(fight, F))
  59.             continue;
  60.           if (!moveFarIfPossible(fight, F))
  61.             stop = true;
  62.         }
  63.       }
  64.     }
  65.  
  66.     private static void apply_type2(Fight.Fighter F, Fight fight)
  67.     {
  68.       int noBoucle = 0;
  69.       while ((!stop) && (F.canPlay()))
  70.       {
  71.         noBoucle++;
  72.         if (noBoucle >= 12) stop = true;
  73.         if (noBoucle > 15) return;
  74.         Fight.Fighter T = getNearestFriend(fight, F);
  75.         if (HealIfPossible(fight, F, false))
  76.           continue;
  77.         if (buffIfPossible(fight, F, T))
  78.           continue;
  79.         if (moveNearIfPossible(fight, F, T))
  80.           continue;
  81.         if (HealIfPossible(fight, F, true))
  82.           continue;
  83.         if (buffIfPossible(fight, F, F))
  84.           continue;
  85.         if (invocIfPossible(fight, F))
  86.           continue;
  87.         T = getNearestEnnemy(fight, F);
  88.         int attack = attackIfPossible(fight, F);
  89.         if (attack == 0)
  90.           continue;
  91.         if (attack == 5) stop = true;
  92.         if (!moveFarIfPossible(fight, F))
  93.           stop = true;
  94.       }
  95.     }
  96.  
  97.     private static void apply_type3(Fight.Fighter F, Fight fight)
  98.     {
  99.       int noBoucle = 0;
  100.       while ((!stop) && (F.canPlay()))
  101.       {
  102.         noBoucle++;
  103.         if (noBoucle >= 12) stop = true;
  104.         if (noBoucle > 15) return;
  105.         Fight.Fighter T = getNearestFriend(fight, F);
  106.         if (moveNearIfPossible(fight, F, T))
  107.           continue;
  108.         if (HealIfPossible(fight, F, false))
  109.           continue;
  110.         if (buffIfPossible(fight, F, T))
  111.           continue;
  112.         if (HealIfPossible(fight, F, true))
  113.           continue;
  114.         if (invocIfPossible(fight, F))
  115.           continue;
  116.         if (buffIfPossible(fight, F, F))
  117.           continue;
  118.         stop = true;
  119.       }
  120.     }
  121.  
  122.     private static void apply_type4(Fight.Fighter F, Fight fight)
  123.     {
  124.       int noBoucle = 0;
  125.       while ((!stop) && (F.canPlay()))
  126.       {
  127.         noBoucle++;
  128.         if (noBoucle >= 12) stop = true;
  129.         if (noBoucle > 15) return;
  130.         Fight.Fighter T = getNearestEnnemy(fight, F);
  131.         if (T == null) return;
  132.         int attack = attackIfPossible(fight, F);
  133.         if (attack == 0)
  134.           continue;
  135.         if (attack == 5) stop = true;
  136.         if (moveFarIfPossible(fight, F))
  137.           continue;
  138.         if (HealIfPossible(fight, F, false))
  139.           continue;
  140.         if (buffIfPossible(fight, F, T))
  141.           continue;
  142.         if (HealIfPossible(fight, F, true))
  143.           continue;
  144.         if (invocIfPossible(fight, F))
  145.           continue;
  146.         if (buffIfPossible(fight, F, F))
  147.           continue;
  148.         stop = true;
  149.       }
  150.     }
  151.  
  152.     private static void apply_type5(Fight.Fighter F, Fight fight)
  153.     {
  154.       int noBoucle = 0;
  155.       while ((!stop) && (F.canPlay()))
  156.       {
  157.         noBoucle++;
  158.         if (noBoucle >= 12) stop = true;
  159.         if (noBoucle > 15) return;
  160.         Fight.Fighter T = getNearestEnnemy(fight, F);
  161.         if (T == null) return;
  162.  
  163.         if (moveNearIfPossible(fight, F, T))
  164.           continue;
  165.         stop = true;
  166.       }
  167.     }
  168.  
  169.     private static void apply_type6(Fight.Fighter F, Fight fight)
  170.     {
  171.       int noBoucle = 0;
  172.       while ((!stop) && (F.canPlay()))
  173.       {
  174.         noBoucle++;
  175.         if (noBoucle >= 12) stop = true;
  176.         if (noBoucle > 15) return;
  177.         if (invocIfPossible(fight, F))
  178.           continue;
  179.         Fight.Fighter T = getNearestFriend(fight, F);
  180.         if (HealIfPossible(fight, F, false))
  181.           continue;
  182.         if (buffIfPossible(fight, F, T))
  183.           continue;
  184.         if (buffIfPossible(fight, F, F))
  185.           continue;
  186.         if (HealIfPossible(fight, F, true))
  187.           continue;
  188.         int attack = attackIfPossible(fight, F);
  189.         if (attack == 0)
  190.           continue;
  191.         if (attack == 5) stop = true;
  192.         if (!moveFarIfPossible(fight, F))
  193.           stop = true;
  194.       }
  195.     }
Advertisement
Add Comment
Please, Sign In to add comment