Esempio n. 1
0
  public boolean isValidCard(AbstractCard target) {
    boolean isValid = false;

    if (target != null
        && target.getOwner() != getOwner()
        && target.getType() == CardType.CHARACTER) {
      isValid = true;
    }

    return isValid;
  }
Esempio n. 2
0
  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);
    }
  }