Advertisement
Guest User

Untitled

a guest
Jan 27th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package com.gurra.henke.fantasybattleroyal.managers.ai;
  2.  
  3. import com.gurra.henke.fantasybattleroyal.objects.ability.Ability;
  4. import com.gurra.henke.fantasybattleroyal.objects.player.Role;
  5.  
  6. import java.util.List;
  7.  
  8. /**
  9.  * Created by Henke on 2015-01-25.
  10.  */
  11. public class AIManager {
  12.  
  13.     public static EnemyAction getEnemyAction(List<Role> roleList, List<Role> enemyList, Role role) {
  14.  
  15.         EnemyAction enemyAction = new EnemyAction();
  16.  
  17.         for (Ability ability : role.abilities){
  18.  
  19.            if (ability.aoe){
  20.  
  21.                if (role.currentResources >= ability.cost)
  22.  
  23.                 enemyAction.ability = ability;
  24.            }
  25.  
  26.            
  27.         }
  28.  
  29.  
  30.  
  31.         return new EnemyAction();
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement