added GetBlockers

This commit is contained in:
BetaSteward 2010-04-16 03:41:59 +00:00
parent 422c5d59a5
commit 59f8e3e324

View file

@ -64,6 +64,14 @@ public class Combat implements Serializable {
return attackers;
}
public List<UUID> getBlockers() {
List<UUID> blockers = new ArrayList<UUID>();
for (CombatGroup group: groups) {
blockers.addAll(group.blockers);
}
return blockers;
}
public void clear() {
groups.clear();
defenders.clear();