Package jc.pbntools

Examples of jc.pbntools.Card$AllCardsIterator


      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


    String sCards, String sArg)
    throws DownloadFailedException
  {
    for (int i=0; i < sCards.length(); i++) {
      char chCard = sCards.charAt(i);
      Card card = new Card();
      card.setColor(nColor);
      card.setRankCh(chCard);
      if (card.getRank() == 0)
        throw new DownloadFailedException(
          PbnTools.getStr("error.linUnrecognCard", chCard, sArg),
          m_sp, !m_bSilent);
      deal.setCard(card, nPerson);
    }
View Full Code Here

    throws DownloadFailedException
  {
    if (sArg.length() != 2)
      throw new DownloadFailedException(
        PbnTools.getStr("error.pbn.wrongCard", sArg));
    Card c = new Card(Card.color(sArg.charAt(0)), Card.rank(sArg.charAt(1)));
    if (!c.isOk())
      throw new DownloadFailedException(
        PbnTools.getStr("error.pbn.wrongCard", sArg));

    m_nCurCard += 1;
    int nHolder = d.getCardHolder(c);
View Full Code Here

TOP

Related Classes of jc.pbntools.Card$AllCardsIterator

Copyright © 2018 www.massapicom. 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.