forked from External/mage
25 lines
556 B
Java
25 lines
556 B
Java
|
|
package mage.player.ai;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.TreeMap;
|
|
import mage.game.permanent.Permanent;
|
|
|
|
/**
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class Attackers extends TreeMap<Integer, List<Permanent>> {
|
|
|
|
public List<Permanent> getAttackers() {
|
|
List<Permanent> attackers = new ArrayList<>();
|
|
for (List<Permanent> l : this.values()) {
|
|
for (Permanent permanent : l) {
|
|
attackers.add(permanent);
|
|
}
|
|
}
|
|
return attackers;
|
|
}
|
|
|
|
}
|