Added Changeling support to public static ArrayList<Card> getCardType(PlayerZone zone, String cardType), in case someone uses it in the future.

This commit is contained in:
jendave
2011-08-06 08:25:57 +00:00
parent 22348ac177
commit 47b04edcad

View File

@@ -16,11 +16,12 @@ public class PlayerZoneUtil
for(int i = 0; i < zone.size(); i++) for(int i = 0; i < zone.size(); i++)
{ {
c = zone.get(i); c = zone.get(i);
if(c.getType().contains(cardType) /*|| c.getKeyword().contains("Changeling")*/ ) if(c.isType(cardType))
list.add(c); list.add(c);
} }
return list; return list;
} }
public static ArrayList<Card> getUntappedCreatures(PlayerZone zone) public static ArrayList<Card> getUntappedCreatures(PlayerZone zone)
{ {
ArrayList<Card> all = getCardType(zone, "Creature"); ArrayList<Card> all = getCardType(zone, "Creature");
@@ -32,6 +33,7 @@ public class PlayerZoneUtil
return untapped; return untapped;
} }
static public boolean isCardInZone(PlayerZone pz, Card card) static public boolean isCardInZone(PlayerZone pz, Card card)
{ {
if(card == null) if(card == null)