Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gurra.henke.fantasybattleroyal.managers.ai;
- import com.gurra.henke.fantasybattleroyal.objects.ability.Ability;
- import com.gurra.henke.fantasybattleroyal.objects.player.Role;
- import java.util.List;
- /**
- * Created by Henke on 2015-01-25.
- */
- public class AIManager {
- public static EnemyAction getEnemyAction(List<Role> roleList, List<Role> enemyList, Role role) {
- EnemyAction enemyAction = new EnemyAction();
- for (Ability ability : role.abilities){
- if (ability.aoe){
- if (role.currentResources >= ability.cost)
- enemyAction.ability = ability;
- }
- }
- return new EnemyAction();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement