hover effect FX
This commit is contained in:
@@ -180,4 +180,22 @@ public class CardDeck {
|
||||
buildingDeck.get(era).remove(card);
|
||||
return card;
|
||||
}
|
||||
|
||||
// for testing only
|
||||
public Card drawTestTribe(int cardId) {
|
||||
Card card = tribeDeck.stream().filter(c->c.getCardId()==cardId).findFirst().orElse(null);
|
||||
if (card!=null) {
|
||||
System.out.println("CARTA FOUND " + cardId + " --> " + card);
|
||||
tribeDeck.remove(card);
|
||||
}
|
||||
return card;
|
||||
}
|
||||
// for testing only
|
||||
public Card drawTestBuilding(int cardId, Era era) {
|
||||
Card card = buildingDeck.get(era).stream().filter(c->c.getCardId()==cardId).map(Card.class::cast).findFirst().orElse(null);
|
||||
if (card!=null) {
|
||||
buildingDeck.get(era).remove(card);
|
||||
}
|
||||
return card;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user