Package com.jcloisterzone

Examples of com.jcloisterzone.TradeResource


  public boolean visit(Feature feature) {
    City city = (City) feature;
    pennants += city.getPennants();
    cathedral = cathedral || city.isCathedral();
    besieged = besieged || city.isBesieged();
    TradeResource tr = city.getTradeResource();
    if (tr != null) {
      if (cityTradeResources == null) {
        cityTradeResources = new int[TradeResource.values().length];
      }
      cityTradeResources[tr.ordinal()]++;
    }
    if (cityCache != null) {
      cityCache.put(city, this);
    }
    return super.visit(feature);
View Full Code Here

TOP

Related Classes of com.jcloisterzone.TradeResource

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.