Uses of Interface
ch.sahits.game.openpatrician.model.product.IWare

Packages that use IWare
ch.sahits.game.openpatrician.model.building   
ch.sahits.game.openpatrician.model.city   
ch.sahits.game.openpatrician.model.city.impl   
ch.sahits.game.openpatrician.model.impl   
ch.sahits.game.openpatrician.model.product   
ch.sahits.game.openpatrician.model.ship   
ch.sahits.game.openpatrician.model.ship.impl   
 

Uses of IWare in ch.sahits.game.openpatrician.model.building
 

Methods in ch.sahits.game.openpatrician.model.building with parameters of type IWare
protected  int TradingOffice.computeAVGPrice(IWare ware, int amount)
          Compute the average price for ware that is to be purchased in the specified amount.
 AmountablePrice ITradingOffice.getWare(IWare ware)
          Retrieve the amount of ware in storage
 int ITradingOffice.move(IWare ware, int amount)
          Add or remove ware from the storage.
 int TradingOffice.move(IWare ware, int amount)
           
 int ITradingOffice.move(IWare ware, int moved, int avgPrice)
          Move the ware into/from the storage with a price attached.
 int TradingOffice.move(IWare ware, int amount, int avgPrice)
          Move the ware into/from the storage with a price attached.
 

Uses of IWare in ch.sahits.game.openpatrician.model.city
 

Fields in ch.sahits.game.openpatrician.model.city with type parameters of type IWare
private  Map<IWare,Integer> CityProduction.productionRates
           
 

Methods in ch.sahits.game.openpatrician.model.city that return IWare
 IWare[] ICity.getEffectiveProduction()
          Retrieve the wares that are produced efficiently
 IWare[] ICity.getIneffectiveProduction()
          Retrieve the wares that are produced inefficiently
 

Methods in ch.sahits.game.openpatrician.model.city with parameters of type IWare
 int BuildingProduction.getConsumption(IWare ware, ICity city, IPlayer player)
          Retrieve the amount of ware that all the workshops of a player consume within a week
 int ICity.getContribution(IPlayer player, IWare ware)
          Check out what the player contributed to the ware
 int CityProduction.getEfficientProduction(IWare ware)
          Compute the amount of ware that is produced efficiently within a week
 int CityProduction.getInefficientProduction(IWare ware)
          Compute the amount of ware that is produced inefficiently within a week
 int BuildingProduction.getProduction(IWare ware, ICity city, IPlayer player)
          Compute the total amount of ware the player produces in the city within a week
 int BuildingProduction.getTotalConsumtion(IWare ware, ICity city)
          Retrieve the amount the workshops consume to produce the ware within a week
 int BuildingProduction.getTotalProduction(IWare ware, ICity city)
          Compute the total amount of ware that is produced in the city within a week
 AmountablePrice ICity.getWare(IWare ware)
          Retrieve the amount of ware in the city
 int ICity.move(IWare ware, int amount, IPlayer player)
          Add or remove ware from the city.
 

Uses of IWare in ch.sahits.game.openpatrician.model.city.impl
 

Fields in ch.sahits.game.openpatrician.model.city.impl declared as IWare
private  IWare[] City.effectiveProduction
           
private  IWare[] City.ineffectiveProduction
           
 

Fields in ch.sahits.game.openpatrician.model.city.impl with type parameters of type IWare
private  Map<IWare,Integer> DailyContribution.contributions
           
 

Methods in ch.sahits.game.openpatrician.model.city.impl that return IWare
 IWare[] City.getEffectiveProduction()
          Retrieve the wares that are produced efficiently
 IWare[] City.getIneffectiveProduction()
          Retrieve the wares that are produced inefficiently
 

Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type IWare
 void DailyContribution.contribute(IWare ware, int amount)
          Update the contribution for the day the amount may be positive or negative
 void Contributions.contribute(IWare ware, int amount)
          Contribute the amount of the ware.
 int City.getContribution(IPlayer player, IWare ware)
           
 int DailyContribution.getContribution(IWare ware)
          Retrieve the contributions for the day
 int Contributions.getContribution(IWare ware)
          Retrieve the contribution for the whole week
 int City.move(IWare ware, int amount, IPlayer player)
          Move ware into this holding.
 

Uses of IWare in ch.sahits.game.openpatrician.model.impl
 

Fields in ch.sahits.game.openpatrician.model.impl with type parameters of type IWare
(package private)  HashMap<IWare,AmountablePrice> WareHolding.wares
          Store the amount of wares in the city in the ware specific sizes
 

Methods in ch.sahits.game.openpatrician.model.impl with parameters of type IWare
protected  void WareHolding.addNewWare(IWare ware, int amount)
          Add a new ware to the wares list
protected  int WareHolding.computeAVGPrice(IWare ware, int amount)
          Compute the average price for ware that is to be purchased in the specified amount.
protected  boolean WareHolding.containsWare(IWare ware)
          Check if there is an amountable object for this ware
 AmountablePrice WareHolding.getWare(IWare ware)
          Retrieve the AmountablePrice of the ware as it is stored in the holding
 int WareHolding.move(IWare ware, int amount, IPlayer player)
          Move ware into this holding.
 

Uses of IWare in ch.sahits.game.openpatrician.model.product
 

Classes in ch.sahits.game.openpatrician.model.product that implement IWare
 class EWare
          Define the different type of wares that are produced and can be traded.
 

Uses of IWare in ch.sahits.game.openpatrician.model.ship
 

Methods in ch.sahits.game.openpatrician.model.ship that return types with arguments of type IWare
 Set<IWare> IShip.getLoadedWares()
          Retrieve a list of all loaded wares
 

Methods in ch.sahits.game.openpatrician.model.ship with parameters of type IWare
 AmountablePrice IShip.getWare(IWare ware)
          Retrieve the amount of ware loaded
 int IShip.load(IWare ware, int amount, int avgPrice)
          Load the ware in the specified amount onto the ship.
 int IShip.unload(IWare ware, int amount)
          Unload the specified quantity of the ware.
 

Uses of IWare in ch.sahits.game.openpatrician.model.ship.impl
 

Fields in ch.sahits.game.openpatrician.model.ship.impl with type parameters of type IWare
private  Map<IWare,AmountablePrice> Ship.loadedWare
          Store the wares loaded on the ship together with their amount.
 

Methods in ch.sahits.game.openpatrician.model.ship.impl that return types with arguments of type IWare
 Set<IWare> Ship.getLoadedWares()
           
 

Methods in ch.sahits.game.openpatrician.model.ship.impl with parameters of type IWare
 AmountablePrice Ship.getWare(IWare ware)
           
 int Ship.load(IWare ware, int amount, int avgPrice)
          Load the ware in the specified amount onto the ship.
 int Ship.unload(IWare ware, int amount)
          Unload the specified quantity of the ware.
 



Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.