Examples of BazaarSelectTileEvent


Examples of com.jcloisterzone.event.BazaarSelectTileEvent

            BazaarItem currentItem = bazaarCap.getCurrentBazaarAuction();
            int supplyIdx = bazaarCap.getBazaarSupply().indexOf(currentItem);
            //game.fireGameEvent().playerActivated(game.getTurnPlayer(), getActivePlayer());

            if (bidding == null) {
                game.post(new BazaarSelectTileEvent(getActivePlayer(), bazaarCap.getBazaarSupply()));
            } else if (selecting == bidding) {
                game.post(new BazaarSelectBuyOrSellEvent(bidding, currentItem, supplyIdx));
            } else {
                game.post(new BazaarMakeBidEvent(bidding, currentItem, supplyIdx));
            }
View Full Code Here

Examples of com.jcloisterzone.event.BazaarSelectTileEvent

        ArrayList<BazaarItem> supply = new ArrayList<BazaarItem>(size);
        for (Tile t : getTilePack().drawTiles(msg.getValues())) {
            supply.add(new BazaarItem(t));
        }
        bazaarCap.setBazaarSupply(supply);
        game.post(new BazaarSelectTileEvent(getActivePlayer(), supply));
    }
View Full Code Here

Examples of com.jcloisterzone.event.BazaarSelectTileEvent

        do {
            player = game.getNextPlayer(player);
            if (!bazaarCap.hasTileAuctioned(player)) {
                bazaarCap.setBazaarTileSelectingPlayer(player);
                //game.fireGameEvent().playerActivated(game.getTurnPlayer(), getActivePlayer());
                game.post(new BazaarSelectTileEvent(getActivePlayer(), bazaarCap.getBazaarSupply()));
                return;
            }
        } while (player != currentSelectingPlayer);
        //all tiles has been auctioned
        bazaarCap.setBazaarTileSelectingPlayer(null);
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.