falyptus

Faith - launchIA()

Jun 29th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. // Dans la classe IA
  2.  
  3. public static void launchIA(Fighter fighter, Fight fight)
  4. {
  5.     if(fighter.getMob() == null)
  6.     {
  7.         return;
  8.     }
  9.     switch(fighter.getMob().getTemplate().getIAType())
  10.     {
  11.         case 0://Poutch
  12.             return;
  13.         case 1://Agressif
  14.             applyType1(fighter, fight);
  15.             break;
  16.         case 2://Soutien
  17.             applyType2(fighter, fight);
  18.             break;
  19.         //etc
  20.         default:
  21.             applyType1(fighter, fight);
  22.             break;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment