Examples of Card


Examples of ch.bfh.jass.game.Card

        JassRule rule = new JassRule();
        rule.setTrumpf(CardColor.HERZ);

        List<Card> cards = new ArrayList<Card>();

        Card ecke6 = new Card(CardColor.ECKE, CardRank.SECHS);
        Card herzAss = new Card(CardColor.HERZ, CardRank.ASS);
        Card herzBube = new Card(CardColor.HERZ, CardRank.BUBE);
        Card kreuz10 = new Card(CardColor.KREUZ, CardRank.ZEHN);

        cards.add(ecke6);
        cards.add(herzAss);
        cards.add(herzBube);
        cards.add(kreuz10);
View Full Code Here

Examples of clueless.model.decks.Card

    {
      /** Testing for adding card images */
      BufferedImage buttonIcon = null;
      URL resource = null;
      /** Load respective images based on card type */
      Card card = iter.next();
      if(card instanceof WeaponCard)
      {
        WeaponCard weaponCard = ((WeaponCard)card);
       
        switch(weaponCard.getWeaponType())
View Full Code Here

Examples of com.barrybecker4.game.multiplayer.set.Card

        SetGameViewer viewer = (SetGameViewer)viewer_;

        if (playerSelected()) {

            SetGameRenderer renderer = (SetGameRenderer)viewer.getBoardRenderer();
            Card card = renderer.findCardOver(viewer_.getBoard(), e.getX(), e.getY(),
                                              viewer.getWidth(), viewer.getHeight());
            if (card != null) {
               card.toggleSelect();
               viewer_.repaint();
            }
            notifyIfSetSelected();
        }
    }
View Full Code Here

Examples of com.excilys.ebi.bank.model.entity.Card

  }

  @Override
  @Cacheable(cacheName = IConstants.Cache.ENTITY_CACHE, keyGenerator = @KeyGenerator(name = IConstants.Cache.KEY_GENERATOR))
  public Integer findCardIdByNumber(String cardNumber) {
    Card card = cardDao.findByNumber(cardNumber);
    notNull(cardNumber, "card with number {} not found", cardNumber);
    return card.getId();
  }
View Full Code Here

Examples of com.google.gwt.gin.higherlower.client.model.Card

/**
* Custom card shuffler.
*/
public class SimpleShuffler implements Shuffler {
  private void swap(List<Card> cards, int firstIndex, int secondIndex) {
    Card o1 = cards.get(firstIndex);
    cards.set(firstIndex, cards.get(secondIndex));
    cards.set(secondIndex, o1);

  }
View Full Code Here

Examples of com.google.gwt.gin.higherlower.client.model.Card

  }

  public void reset() {
    for (int row = 0; row < this.rows; row++) {
      for (int column = 0; column < this.columns; column++) {
        grid.setWidget(row, column, new Card(null,null,this.backOfCard.get()));
      }
    }
  }
View Full Code Here

Examples of com.google.gwt.gin.higherlower.client.model.Card

  public void nextCard(Card card) {
    // TODO perf will suck for large grids
    for (int row = 0; row < this.rows; row++) {
      for (int column = 0; column < this.columns; column++) {
        Card currentCard = (Card)grid.getWidget(row, column);
        if (currentCard.getSuit() == null) {
          grid.setWidget(row, column, card);
          return;
        }
      }
    }
View Full Code Here

Examples of com.google.gwt.gin.higherlower.client.model.Card

   * Turn the next card.
   * @param guess the player's guess
   * @return whether the player was right or wrong
   */
  public PlayerGuessResult displayNextCard(RelationshipToPreviousCard guess) {
    Card card = deck.turnCard();
    grid.nextCard(card);
    cardsTurnedPlusOne++;

    RelationshipToPreviousCard actualRelationshipToPrevious = getRelationshipToPreviousCard(card);
    previous = card;
View Full Code Here

Examples of com.googlecode.memwords.domain.Card

    @Override
    public Card createCard(String userId, CardDetails cardDetails, SecretKey encryptionKey) {
        EntityTransaction tx = em.getTransaction();
        try {
            tx.begin();
            Card card = new Card();
            card.setInitializationVector(cryptoEngine.generateInitializationVector());
            updateCard(card, cardDetails, encryptionKey, true);
            Account account = em.find(Account.class, userId);
            account.addCard(card);
            em.persist(card);
            tx.commit();
View Full Code Here

Examples of com.javaflair.pokerprophesier.api.card.Card

           
            //Check if the player is active (cards in their hand)
            if ( player.isActive() ) {
                //The player is active, create a HoleCards class for them and
                //assign their cards using the data from the input
                cards = new HoleCards( new Card( player.getCard(0).getRank(),
                                                 player.getCard(0).getSuit() ),
                                       new Card( player.getCard(1).getRank(),
                                                 player.getCard(1).getSuit() ) );
               
                //Check if the player has folded
                if ( player.getFolded() )
                    //This defaults to false, so only set if they have folded
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.