public boolean checkSrcAlive(Card card) { Field field = card.getField(); for (Card c : field.getAllCards()) { if (c.getID() == card.getID()) return true; } return false; }
public void drawUI() { Card currentCard = field.getCurrentCard(); // Team member turn if (currentCard instanceof PlayerCard && currentCard.getID() != field.game.getCurrentCharacter().getId()) { currentTurn = teamMemberTurn; } // Monster turn else if (currentCard instanceof MonsterCard) { System.out.println("MONSTERTURN"); currentTurn = monsterTurn; } // Your turn else { System.out.println("YOURTURN"); currentTurn = yourTurn; yourTurn.setFirstAppearance(); yourTurn.setInitialDelay(field.animationManager.getTotalAnimationDuration()); } currentTurn.draw(); }