falyptus

Ancestrar.calculDeshonorWin

Jun 30th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. * @author DeeZ
  3. **/
  4.  
  5. //Formulas.java :
  6. public static int calculDeshonorWin(Fighter F, ArrayList<Fighter> loosers)
  7. {
  8.     boolean fighterAlign = F.getPersonnage().get_align > 0;
  9.     boolean loosersAlign = false;
  10.  
  11.     for(Fighter f : loosers)
  12.     {
  13.         if(f.getPersonnage() == null)continue;
  14.         if(f.getPersonnage().get_align() > 0)
  15.         {
  16.             loosersAlign = true;
  17.             break;
  18.         }
  19.     }
  20.  
  21.     if(winnersAlign || loosersAlign)
  22.         return 1;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment