Package com.jcloisterzone.event

Examples of com.jcloisterzone.event.TradeResourceEvent


            if (cityTradeResources != null) {
                Player player = game.getActivePlayer();
                int playersTradeResources[] = tradeResources.get(player);
                for (int i = 0; i < cityTradeResources.length; i++) {
                    playersTradeResources[i] += cityTradeResources[i];
                    game.post(new TradeResourceEvent(player, TradeResource.values()[i], cityTradeResources[i]));
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.event.TradeResourceEvent

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.