Package cero.games.base

Examples of cero.games.base.Card52


  }

  public void roundEnd(RoundEvent e) {
    Zone z;
    Player winner = null;
    Card52 winnersCard = null;
    boolean equality = false;
    Collection<Card> cardcol = new ArrayList<Card>();

    for (Player p : e.getGame().getPlayers()) {
      z = p.getZones().get("current");
      if (z.getCardCount() > 0) {
        Card c = z.getSortedList().get(z.getSortedList().size() - 1);
        if (c instanceof Card52) {
          if (winnersCard == null) {
            winnersCard = ((Card52) c);
            winner = p;
          } else {
            if (((Card52) c).getValue() > winnersCard.getValue()) {
              winnersCard = ((Card52) c);
              winner = p;
              equality = false;
            } else if (((Card52) c).getValue() == winnersCard
                .getValue()) {
              equality = true;
            }
          }
        }
View Full Code Here

TOP

Related Classes of cero.games.base.Card52

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.