Examples of Card


Examples of hidb2.kern.Card

              Folder f = (Folder) ((IStructuredSelection) selection).getFirstElement();

              ISelection selCard = _tabvCard.getSelection();
              if (!selCard.isEmpty())
                {
                Card crd = (Card) ((IStructuredSelection) selCard).getFirstElement();

                /* int res = */Application.getDataStore().remove(f, crd);

                setDirty(true);

View Full Code Here

Examples of inheritance.Card

  }
 
  private void _transition_exprAction__addCard_transitions0_actions0(final CardHand it) {
    try {
     
      Card _card = new Card('S', 1);
      it.addCard(_card);
      } catch (junit.framework.AssertionFailedError error) {
      fail("addCard(new Card('S',1)) failed: " + error.getMessage());
    }
   
View Full Code Here

Examples of interfaces.Card

@SuppressWarnings("all")
public class CardContainerTest extends TestCase {
  private Card s1;
 
  private Card _init_s1() {
    Card _card = new Card('S', 1);
    return _card;
  }
View Full Code Here

Examples of javastudy.mavericks.deck.Card

      for (int j = i + 1; j < card.size(); ++j) {
        int suitI = card.get(i).getSuit().charAt(0);
        int suitJ = card.get(j).getSuit().charAt(0);

        if (suitI > suitJ) {
          Card temp = card.get(i);
          card.set(i, card.get(j));
          card.set(j, temp);
        }
      }
    }
View Full Code Here

Examples of javastudy.poker.deck.Card

public class FullHouseVsFullHouse {

  @Test
  public void testTwoPairVsOnePair() {
    // Two Pair
    Card card1 = new Card("Spades", "3");
    Card card2 = new Card("Diamonds", "3");
    Card card3 = new Card("Hearts", "8");
    Card card4 = new Card("Spades", "8");
    Card card5 = new Card("Clubs", "8");

    // One Pair
    Card card6 = new Card("Spades", "2");
    Card card7 = new Card("Diamonds", "2");
    Card card8 = new Card("Spades", "8");
    Card card9 = new Card("Hearts", "8");
    Card card10 = new Card("Hearts", "8");

    ArrayList<Card> player1 = new ArrayList<Card>();
    ArrayList<Card> player2 = new ArrayList<Card>();

    player1.add(card1);
View Full Code Here

Examples of javax.smartcardio.Card

  // CONSTRUCTOR
  public TopUpTerminal(){
    TerminalFactory    tf;
    CardTerminals      ct;
    List<CardTerminal> cs;
    Card card;

    loadBlacklist();
    CARD_LEGIT=false;
    cID="0";
    sg = Signature.getInstance(Signature.ALG_DES_MAC8_ISO9797_M2, false);
    try {
      cp = Cipher.getInstance("AES/ECB/NoPadding");
    } catch (Exception e) {
      Utilities.writeToLogs(home,"[E] "+e.toString());     
    }
    try {
      tf = TerminalFactory.getDefault();
      ct = tf.terminals();
      cs = ct.list(CardTerminals.State.CARD_PRESENT);
      if (cs.isEmpty()){
        Utilities.writeToLogs(home,"[E] No terminal with a card found!");
        System.out.println("[-] No terminal with a card found!");
        return;
      }
      for(CardTerminal c : cs){
        if (c.isCardPresent()){
          try{
            card = c.connect("*");
            try{
              ch =card.getBasicChannel();
              ResponseAPDU resp = ch.transmit(SELECT_APDU);
              terminal=c;

              if (resp.getSW() !=  0x9000){
                Utilities.writeToLogs(home,"[E] Problems: Card Device not selectable != 0x9000");
View Full Code Here

Examples of jc.pbntools.Card

      for (int i = 0; i < sCards.length(); i++) {
        char chCard = sCards.charAt(i);
        // skip spaces
        if (HTML_SPACE.indexOf(chCard) >= 0)
          continue;
        Card card = new Card();
        card.setColor(nColor);
        card.setRankCh(chCard);
        deal.setCard(card, nPerson);
      }
    }
    deal.fillHands();
  } //}}}
View Full Code Here

Examples of jimmm.data.Card

  }
 
  // *** GETTER ***
 
  public Card getCard() {
    return new Card(associatedCard);
  }
View Full Code Here

Examples of mage.cards.Card

    super(effect);
  }

  @Override
  public boolean apply(Game game, Ability source) {
    Card card = game.getCard(source.getFirstTarget());
    Permanent permanent = game.getPermanent(source.getSourceId());
    permanent.setName(card.getName());
    permanent.getColor().setColor(card.getColor());
    permanent.getManaCost().clear();
    permanent.getManaCost().add(card.getManaCost());
    permanent.getCardType().clear();
    for (CardType type: card.getCardType()) {
      permanent.getCardType().add(type);
    }
    permanent.getSubtype().clear();
    for (String type: card.getSubtype()) {
      permanent.getSubtype().add(type);
    }
    permanent.getSupertype().clear();
    for (String type: card.getSupertype()) {
      permanent.getSupertype().add(type);
    }
    permanent.setExpansionSetCode(card.getExpansionSetCode());
    permanent.getAbilities().clear();
    for (Ability ability: card.getAbilities()) {
      permanent.addAbility(ability);
    }
    permanent.getPower().setValue(card.getPower().getValue());
    permanent.getToughness().setValue(card.getToughness().getValue());
    permanent.getLoyalty().setValue(card.getLoyalty().getValue());
    permanent.setArt(card.getArt());
   
    return true;

  }
View Full Code Here

Examples of mage.client.cards.Card

    if (cardPlugin != null) {
      mageActionCallback.refreshSession();
      mageActionCallback.setCardPreviewComponent(bigCard);
      return cardPlugin.getMageCard(card, dimension, gameId, mageActionCallback);
    } else {
      return new Card(card, bigCard, Config.dimensions, gameId);
    }
  }
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.