public boolean isValidCard(AbstractCard target) { boolean isValid = false; if (target != null && target.getOwner() != getOwner() && target.getType() == CardType.CHARACTER) { isValid = true; } return isValid; }
public void complete() { InputHandler handler = getCardResources().getInputHandler(); IDisc disc = handler.getDiscInput(); AbstractCard target = disc.getCard(); ICardStorage opponentHand; if (target != null && isValidCard(target)) { target.getDisc().removeCard(); opponentHand = target.getOwner().getHand(); opponentHand.pushCard(target); } }