mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Card.java - Added hasKeyword and hasAnyKeyword.
This commit is contained in:
@@ -1606,4 +1606,18 @@ public class Card extends MyObservable {
|
|||||||
public boolean isReflectedLand() {
|
public boolean isReflectedLand() {
|
||||||
return reflectedLand;
|
return reflectedLand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean hasKeyword(String keyword)
|
||||||
|
{
|
||||||
|
return getKeyword().contains(keyword);
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasAnyKeyword(String keywords[])
|
||||||
|
{
|
||||||
|
for (int i=0; i<keywords.length; i++)
|
||||||
|
if (hasKeyword(keywords[i]))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user