Package ch.sahits.game.openpatrician.model.building

Examples of ch.sahits.game.openpatrician.model.building.ITradingOffice


        city = CityFactory.createCityByName(cityName); // TODO refactor this as bean
        List<IBuilding> buildings = owner.findBuildings(city);
        for (IBuilding building : buildings) {
          companyValue += building.getValue();
          if (building instanceof ITradingOffice){
            ITradingOffice office = (ITradingOffice) building;
            for (IWare ware : EWare.values()) {
              AmountablePrice ap = office.getWare(ware);
              companyValue+=ap.getAVGPrice()*ap.getAmount();
            }
          }
        }
      } catch (IOException e) {
View Full Code Here

TOP

Related Classes of ch.sahits.game.openpatrician.model.building.ITradingOffice

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.