Examples of ICard


Examples of org.knapper.tubes.core.model.ICard

        PlayerHandChangeEvent.CARDS ));
  }
 
  public ICard consumeCard(int index) {
    if (index >= 0 && index < cards.length) {
      ICard tempCard = cards[index];
      cards[index] = null;
     
      if (selectedIndex == index) {
        setSelectedIndex(-1);
      }
View Full Code Here

Examples of org.knapper.tubes.core.model.ICard

    return null;
  }

  public void switchSelectedCard() {
    int index = getSelectedIndex();
    ICard selectedCard = getSelectedCard();
   
    if (selectedCard != null) {
      ICard newCard = cardSet.switchCard(selectedCard);
      cards[index] = newCard;
     
      firePlayerHandChangeEvent(new PlayerHandChangeEvent(
          this,
          PlayerHandChangeEvent.CARDS ));
View Full Code Here

Examples of org.knapper.tubes.core.model.ICard

    return null;
  }
 
  private ICard consumeCard(ICard card) {
    ICard tempCard = card;
    cards.remove(card);
    return tempCard;
 
View Full Code Here

Examples of org.knapper.tubes.core.model.ICard

  public ICard switchCard(ICard card) {
    if (card == null && !card.getParentCardSet().equals(this)) {
      return null;
    }
   
    ICard tempCard = consumeRandomCard();
   
    if (tempCard != null) {
      returnCard(card);
      return tempCard;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.