Examples of ZoneHand


Examples of cero.games.base.ZoneHand

    Collection<Card> cardSet = new ArrayList<Card>();
    for (Card card : card52Set)
      cardSet.add(card);
   
    //dealsource creation
    Zone dealzone = new ZoneHand("Deal Source", cardSet);
    bataille.getZones().add(dealzone);
   
    //Players and zones creation
    for (int i = 0; i < bataille.getPlayers().size(); i++) {
      cero.games.Player player = bataille.getPlayers().get(i);
      for(String type : zonesType)
        player.getZones().add(new ZoneHand(type));
    }
  }
View Full Code Here

Examples of cero.games.base.ZoneHand

    // Players and zones creation
    for (int i = 0; i < uno.getPlayers().size(); i++) {
      UnoPlayer player = (UnoPlayer) uno
          .getPlayers().get(i);
      player.getZones().add(new ZoneHand("Hand"));
      //FIXME : this class shouldn't be set like this, hardcoded. yet it will be appreciated i suppose
      player.getHand().setSorter(new ColorSorter());
    }
  }
View Full Code Here

Examples of cero.games.base.ZoneHand

    }
  }

  private void makePlayerDraw(Player p, int quantity) {
    ZoneFile stock = ((UnoGame) getGame()).getStock();
    ZoneHand hand = ((UnoPlayer) p).getHand();
    stock.drawCards(hand, quantity);
  }
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.