protected String getCardSubTypeLine() { StringBuilder subType = new StringBuilder(); if (!cardView.getSubTypes().isEmpty()) { for (SubType sType : cardView.getSubTypes()) { subType.append(sType).append(' '); } } return subType.toString(); }
public String getTypeText() { StringBuilder type = new StringBuilder(); if (!getSuperTypes().isEmpty()) { type.append(String.join(" ", getSuperTypes().stream().map(SuperType::toString).collect(Collectors.toList()))); type.append(" "); } if (!getCardTypes().isEmpty()) { type.append(String.join(" ", getCardTypes().stream().map(CardType::toString).collect(Collectors.toList()))); type.append(" "); } if (!getSubTypes().isEmpty()) { type.append(" - "); type.append(String.join(" ", getSubTypes().stream().map(SubType::toString).collect(Collectors.toList()))); } return type.toString(); }
protected final String getType(CardView card) { StringBuilder sbType = new StringBuilder(); for (SuperType superType : card.getSuperTypes()) { sbType.append(superType.toString()).append(' '); } for (CardType cardType : card.getCardTypes()) { sbType.append(cardType.toString()).append(' '); } if (!card.getSubTypes().isEmpty()) { sbType.append("- "); for (SubType subType : card.getSubTypes()) { sbType.append(subType).append(' '); } } return sbType.toString().trim(); }
protected String getType(CardView card) { StringBuilder sbType = new StringBuilder(); for (SuperType superType : card.getSuperTypes()) { sbType.append(superType).append(' '); } for (CardType cardType : card.getCardTypes()) { sbType.append(cardType.toString()).append(' '); } if (!card.getSubTypes().isEmpty()) { sbType.append("- "); for (SubType subType : card.getSubTypes()) { sbType.append(subType).append(' '); } } return sbType.toString(); }
private static String getCardTypeLine(Game game, Card card) { StringBuilder sbType = new StringBuilder(); for (SuperType superType : card.getSuperType()) { sbType.append(superType).append(' '); } for (CardType cardType : card.getCardType()) { sbType.append(cardType.toString()).append(' '); } if (!card.getSubtype(game).isEmpty()) { sbType.append("- "); for (SubType subType : card.getSubtype(game)) { sbType.append(subType).append(' '); } } return sbType.toString(); }
private static String getTypes(CardView card) { String types = ""; for (SuperType superType : card.getSuperTypes()) { types += superType.toString() + ' '; } for (CardType cardType : card.getCardTypes()) { types += cardType.toString() + ' '; } if (!card.getSubTypes().isEmpty()) { types += "- "; } for (SubType subType : card.getSubTypes()) { types += subType + " "; } return types.trim(); } }
if (game.getOpponents(this.getId()).contains(permanent.getControllerId()) && permanent.getCardType().contains(CardType.CREATURE) && !permanent.getSubtype(game).isEmpty()) { if (choice.getChoices().contains(permanent.getSubtype(game).get(0).toString())) { choice.setChoice(permanent.getSubtype(game).get(0).toString()); Player opponent = game.getPlayer(opponentId); for (Card card : opponent.getGraveyard().getCards(game)) { if (card != null && card.getCardType().contains(CardType.CREATURE) && !card.getSubtype(game).isEmpty()) { if (choice.getChoices().contains(card.getSubtype(game).get(0).toString())) { choice.setChoice(card.getSubtype(game).get(0).toString()); if (card != null && card.getCardType().contains(CardType.CREATURE) && !card.getSubtype(game).isEmpty()) { if (choice.getChoices().contains(card.getSubtype(game).get(0).toString())) { choice.setChoice(card.getSubtype(game).get(0).toString()); for (UUID cardId : this.getLibrary().getCardList()) { Card card = game.getCard(cardId); if (card != null && card.getCardType().contains(CardType.CREATURE) && !card.getSubtype(game).isEmpty()) { if (choice.getChoices().contains(card.getSubtype(game).get(0).toString())) { choice.setChoice(card.getSubtype(game).get(0).toString());
permanent.getSubtype(game).clear(); if (!token.getSubtype(game).isEmpty()) { permanent.getSubtype(game).addAll(token.getSubtype(game));
permanent.getSubtype(game).clear(); if (!token.getSubtype(game).isEmpty()) { permanent.getSubtype(game).addAll(token.getSubtype(game));
permanent.getSubtype(game).retainAll(SubType.getLandTypes(false)); if (!token.getSubtype(game).isEmpty()) { permanent.getSubtype(game).addAll(token.getSubtype(game));
permanent.getSubtype(game).addAll(token.getSubtype(game)); } else { if (!token.getSubtype(game).isEmpty()) { for (SubType subtype : token.getSubtype(game)) { if (!permanent.hasSubtype(subtype, game)) {