Uses of Class
net.sf.freecol.common.model.GoodsType

Packages that use GoodsType
net.sf.freecol.client.control Contains the classes responsible for the control of the game. 
net.sf.freecol.client.gui Contains the GUI classes. 
net.sf.freecol.client.gui.i18n  
net.sf.freecol.client.gui.panel Contains the panels and dialogs. 
net.sf.freecol.common Contains classes in use by both the server and the client. 
net.sf.freecol.common.model Contains the game model. 
net.sf.freecol.server.ai The main package of the ai package tree. 
net.sf.freecol.server.ai.mission Contains the missions an AIUnit can be assigned to. 
 

Uses of GoodsType in net.sf.freecol.client.control
 

Methods in net.sf.freecol.client.control with parameters of type GoodsType
 void InGameController.buyGoods(GoodsType type, int amount, Unit carrier)
          Buys goods in Europe.
 void InGameController.changeWorkType(Unit unit, GoodsType workType)
          Changes the work type of this Unit.
 void InGameController.payArrears(GoodsType type)
          Pays the tax arrears on this type of goods.
 void InGameController.setGoodsLevels(Colony colony, GoodsType goodsType)
          Sets the export settings of the custom house.
 

Uses of GoodsType in net.sf.freecol.client.gui
 

Methods in net.sf.freecol.client.gui with parameters of type GoodsType
 java.awt.Image ImageLibrary.getGoodsImage(GoodsType goodsType)
          Returns the goods-image at the given index.
 javax.swing.ImageIcon ImageLibrary.getGoodsImageIcon(GoodsType goodsType)
          Returns the goods-image for a goods type.
 javax.swing.ImageIcon ImageLibrary.getScaledGoodsImageIcon(GoodsType type, float scale)
          Returns the scaled goods-ImageIcon for a goods type.
 

Uses of GoodsType in net.sf.freecol.client.gui.i18n
 

Methods in net.sf.freecol.client.gui.i18n with parameters of type GoodsType
static java.lang.String Messages.getLabel(GoodsType type, int amount)
          Returns a description of the goods.
 

Uses of GoodsType in net.sf.freecol.client.gui.panel
 

Methods in net.sf.freecol.client.gui.panel that return GoodsType
 GoodsType LabourData.UnitData.getExpertProduction()
           
 GoodsType TradeRouteInputDialog.CargoLabel.getType()
           
 GoodsType MarketLabel.getType()
          Returns this MarketLabel's goods type.
 

Methods in net.sf.freecol.client.gui.panel with parameters of type GoodsType
abstract  java.awt.Image ImageProvider.getGoodsImage(GoodsType type)
          Should return the Image of the graphic with the given type.
abstract  javax.swing.ImageIcon ImageProvider.getGoodsImageIcon(GoodsType type)
          Should return the Image of the graphic with the given type.
 void EuropePanel.TransactionLog.logPurchase(GoodsType goodsType, int amount, int price)
           
 void EuropePanel.TransactionLog.logSale(GoodsType goodsType, int amount, int price, int tax)
           
 void EuropePanel.payArrears(GoodsType goodsType)
          Asks for pay arrears of a type of goods, if those goods are boycotted
 

Constructors in net.sf.freecol.client.gui.panel with parameters of type GoodsType
FreeColProgressBar(Canvas parent, GoodsType goodsType)
          Creates a new FreeColProgressBar instance.
FreeColProgressBar(Canvas parent, GoodsType goodsType, int min, int max)
          Creates a new FreeColProgressBar instance.
FreeColProgressBar(Canvas parent, GoodsType goodsType, int min, int max, int value, int step)
          Creates a new FreeColProgressBar instance.
MarketLabel(GoodsType type, Market market, Canvas parent)
          Initializes this JLabel with the given goods type.
MarketLabel(GoodsType type, Market market, Canvas parent, boolean isSmall)
          Initializes this JLabel with the given goods type.
ProductionLabel(GoodsType goodsType, int amount, Canvas parent)
          Creates a new ProductionLabel instance.
ProductionLabel(GoodsType goodsType, int amount, int maximumProduction, Canvas parent)
          Creates a new ProductionLabel instance.
SelectAmountDialog(Canvas parent, GoodsType goodsType, int available, boolean needToPay)
          The constructor to use.
TradeRouteInputDialog.CargoLabel(GoodsType type)
           
WarehouseDialog.WarehouseGoodsPanel(Colony colony, GoodsType goodsType)
           
 

Uses of GoodsType in net.sf.freecol.common
 

Methods in net.sf.freecol.common that return GoodsType
 GoodsType Specification.getGoodsType(java.lang.String id)
          Describe getGoodsType method here.
 

Methods in net.sf.freecol.common that return types with arguments of type GoodsType
 java.util.List<GoodsType> Specification.getFarmedGoodsTypeList()
           
 java.util.List<GoodsType> Specification.getGoodsFood()
           
 java.util.List<GoodsType> Specification.getGoodsTypeList()
           
 java.util.List<GoodsType> Specification.getImmigrationGoodsTypeList()
           
 java.util.List<GoodsType> Specification.getLibertyGoodsTypeList()
           
 java.util.List<GoodsType> Specification.getNewWorldGoodsTypeList()
           
 

Methods in net.sf.freecol.common with parameters of type GoodsType
 UnitType Specification.getExpertForProducing(GoodsType goodsType)
           
 

Uses of GoodsType in net.sf.freecol.common.model
 

Fields in net.sf.freecol.common.model declared as GoodsType
static GoodsType Goods.BELLS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.CIGARS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.CLOTH
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.COATS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.COTTON
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.CROSSES
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.FISH
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.FOOD
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.FURS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.HAMMERS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.HORSES
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.LUMBER
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.MUSKETS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.ORE
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.RUM
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.SILVER
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.SUGAR
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.TOBACCO
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.TOOLS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
static GoodsType Goods.TRADEGOODS
          Need to change various classes to use the specification in order to remove reliance on these static quick links.
 

Methods in net.sf.freecol.common.model that return GoodsType
 GoodsType ResourceType.getBestGoodsType()
           
 GoodsType Resource.getBestGoodsType()
          Returns the best GoodsType
 GoodsType BuildingType.getConsumedGoodsType()
           
 GoodsType TileImprovementType.getDeliverGoodsType()
           
 GoodsType TileImprovement.getDeliverGoodsType()
           
 GoodsType UnitType.getExpertProduction()
          Get the ExpertProduction value.
 GoodsType Building.getGoodsInputType()
          Returns the type of goods this building needs for input.
 GoodsType Building.getGoodsOutputType()
          Returns the type of goods this Building produces.
 GoodsType MarketData.getGoodsType()
          Get the type of goods of this MarketData.
 GoodsType BuildingType.getProducedGoodsType()
           
 GoodsType GoodsType.getProducedMaterial()
           
 GoodsType GoodsType.getRawMaterial()
           
 GoodsType TileType.getSecondaryGoods()
           
 GoodsType GoodsType.getStoredAs()
           
 GoodsType AbstractGoods.getType()
          Get the Type value.
 GoodsType[] PlayerExploredTile.getWantedGoods()
           
 GoodsType[] IndianSettlement.getWantedGoods()
           
 GoodsType Unit.getWorkType()
          Gets the type of goods this unit is producing in its current occupation.
 GoodsType ColonyTile.getWorkType(Unit unit)
          Returns a worktype for a unit.
 GoodsType GoodsType.inputType()
           
 GoodsType GoodsType.outputType()
           
 GoodsType Tile.primaryGoods()
          The type of primary good (food) this tile produces best (used for Town Commons squares).
 GoodsType Tile.secondaryGoods()
          The type of secondary good (non-food) this tile produces best (used for Town Commons squares).
 

Methods in net.sf.freecol.common.model that return types with arguments of type GoodsType
 java.util.ArrayList<GoodsType> TradeRoute.Stop.getCargo()
          Get the Cargo value.
 java.util.List<GoodsType> GoodsType.getProductionChain()
          Returns the production chain of the goods type, beginning with a raw material that can not be produced from any other.
 

Methods in net.sf.freecol.common.model with parameters of type GoodsType
 void TradeRoute.Stop.addCargo(GoodsType newCargo)
           
 void Settlement.addGoods(GoodsType type, int amount)
          Describe addGoods method here.
 void GoodsContainer.addGoods(GoodsType type, int amount)
          Adds the given amount of the given type of goods.
 void Colony.addGoods(GoodsType type, int amount)
          Describe addGoods method here.
 boolean Market.addGoodsToMarket(GoodsType goodsType, int amount)
          Add (or remove) some goods to this market.
 void Market.buy(GoodsType goodsType, int amount, Player player)
          Buys an amount of a particular type of good with the cost being met by a supplied player.
 void Unit.buyGoods(GoodsType goodsType, int amount)
          Buys goods of a specified type and amount and adds it to this Unit.
 boolean Colony.canBreed(GoodsType goodsType)
          Returns true if this Colony can breed the given type of Goods.
 boolean Player.canTrade(GoodsType type)
          Returns true if type of goods can be traded in Europe.
 boolean Player.canTrade(GoodsType type, int marketAccess)
          Returns true if type of goods can be traded at specified place.
 int Market.costToBuy(GoodsType type)
          Determines the cost to buy a single unit of a particular type of good.
 void Tile.expendResource(GoodsType goodsType, UnitType unitType, Settlement settlement)
          This method is called only when a new turn is beginning.
static TileImprovementType TileImprovement.findBestTileImprovementType(Tile tile, GoodsType goodsType)
          Method for returning the 'most effective' TileImprovementType allowed for a given Tile.
 int BuildableType.getAmountRequiredOf(GoodsType type)
          Get amount required of given GoodsType
 int Player.getArrears(GoodsType type)
          Returns the arrears due for a type of goods.
 int Market.getBidPrice(GoodsType type, int amount)
          Gets the price of a given goods when the Player buys.
 int TileImprovementType.getBonus(GoodsType goodsType)
           
 int TileImprovement.getBonus(GoodsType goodsType)
          Returns the bonus (if any).
 int Resource.getBonus(GoodsType goodsType, UnitType unitType, int potential)
          Returns the bonus (checking available stock) for next turn.
 Building Colony.getBuildingForConsuming(GoodsType goodsType)
          Find a building for consuming the given type of goods.
 Building Colony.getBuildingForProducing(GoodsType goodsType)
          Find a building for producing the given type of goods.
 java.util.List<Building> Colony.getBuildingsForConsuming(GoodsType goodsType)
          Collect the buildings for consuming the given type of goods.
 java.util.List<Building> Colony.getBuildingsForProducing(GoodsType goodsType)
          Collect the buildings for producing the given type of goods.
 int Colony.getConsumption(GoodsType goodsType)
          Returns the number of goods of a given type used by the colony each turn.
 ExportData Colony.getExportData(GoodsType goodsType)
          Describe getExportData method here.
 int Settlement.getFoodConsumptionByType(GoodsType type)
          Gets food consumption by type
 Goods GoodsContainer.getGoods(GoodsType goodsType)
           
 int Settlement.getGoodsCount(GoodsType type)
          Gets the amount of one type of Goods at this Settlement.
 int GoodsContainer.getGoodsCount(GoodsType type)
          Returns the amount of one type of Goods in this container.
 int Player.getIncomeAfterTaxes(GoodsType goodsType)
          Returns the current incomeAfterTaxes.
 int Player.getIncomeBeforeTaxes(GoodsType goodsType)
          Returns the current incomeBeforeTaxes.
 int Unit.getLoadableAmount(GoodsType type)
          Returns the amount of a GoodsType that could be loaded.
 MarketData Market.getMarketData(GoodsType goodsType)
          Return the market data for a type of goods.
 int Tile.getMaximumPotential(GoodsType goodsType, UnitType unitType)
          Gets the maximum potential for producing the given type of goods.
 int IndianSettlement.getMaximumProduction(GoodsType goodsType)
          Gets the maximum possible production of the given type of goods.
 int GoodsContainer.getOldGoodsCount(GoodsType type)
          Returns the amount of one type of Goods at the beginning of the turn.
 int IndianSettlement.getPrice(GoodsType type, int amount)
          Gets the amount of gold this IndianSettlment is willing to pay for the given Goods.
 int IndianSettlement.getPriceToSell(GoodsType type, int amount)
          Gets the amount of gold this IndianSettlment is willing to pay for the given Goods.
 java.util.Set<Modifier> TileType.getProductionBonus(GoodsType goodsType)
          Returns the production bonus for the given GoodsType.
 java.util.Set<Modifier> TileItemContainer.getProductionBonus(GoodsType goodsType, UnitType unitType)
          Describe getProductionBonus method here.
 java.util.Set<Modifier> Tile.getProductionBonus(GoodsType goodsType, UnitType unitType)
          Describe getProductionBonus method here.
 int UnitType.getProductionFor(GoodsType goodsType, int base)
           
 Modifier TileImprovementType.getProductionModifier(GoodsType goodsType)
           
 Modifier TileImprovement.getProductionModifier(GoodsType goodsType)
          Returns the bonus Modifier (if any).
 Modifier Colony.getProductionModifier(GoodsType goodsType)
           
 java.util.Set<Modifier> ResourceType.getProductionModifier(GoodsType goodsType, UnitType unitType)
           
 java.util.Set<Modifier> ColonyTile.getProductionModifiers(GoodsType goodsType, UnitType unitType)
          Returns the production of the given type of goods.
 int Colony.getProductionNetOf(GoodsType goodsType)
          Returns how much of a Good will be produced by this colony this turn, taking into account how much is consumed - by workers, horses, etc.
 int Colony.getProductionNextTurn(GoodsType goodsType)
          Returns how much of a Good will be produced by this colony this turn
 int WorkLocation.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
abstract  int Settlement.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
 int IndianSettlement.getProductionOf(GoodsType type)
           
 int ColonyTile.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
 int Colony.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
 int Building.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
 int Unit.getProductionOf(GoodsType goodsType, int base)
          Given a type of goods to produce in the field and a tile, returns the unit's potential to produce goods.
 int TileType.getProductionOf(GoodsType goodsType, UnitType unitType)
          Returns the amount of goods of given GoodsType this TileType can produce.
 int ColonyTile.getProductionOf(Unit unit, GoodsType goodsType)
          Returns the production of the given type of goods which would be produced by the given unit
 int Market.getSalePrice(GoodsType type, int amount)
          Gets the price of a given goods when the Player sells.
 int Player.getSales(GoodsType goodsType)
          Returns the current sales.
static int Tile.getTileTypePotential(TileType tileType, GoodsType goodsType, TileItemContainer tiContainer, UnitType unitType)
          Calculates the potential of a certain GoodsType.
 int TileItemContainer.getTotalBonusPotential(GoodsType g, UnitType unitType, int tilePotential)
          Determine the total bonus for a GoodsType.
 ColonyTile Colony.getVacantColonyTileFor(Unit unit, boolean allowClaim, GoodsType... goodsTypes)
          Returns a vacant ColonyTile where the given unit produces the maximum output of the given goodsType.
 int TileImprovementType.getValue(TileType tileType, GoodsType goodsType)
          Returns a value for use in AI decision making.
 java.util.Collection<java.lang.String> Colony.getWarnings(GoodsType goodsType, int amount, int production)
          determine if there is a problem with the production of the specified good
 boolean Player.hasTraded(GoodsType goodsType)
          Has a type of goods been traded?
 void TransactionListener.logPurchase(GoodsType goodsType, int amount, int price)
          Logs a purchase
 void TransactionListener.logSale(GoodsType goodsType, int amount, int price, int tax)
          Logs a sale
 ModelMessage Market.makePriceMessage(GoodsType goodsType)
          Make up a ModelMessage describing the change in this Market for a specified type of goods.
 void Player.modifyIncomeAfterTaxes(GoodsType goodsType, int amount)
          Modifies the current incomeAfterTaxes.
 void Player.modifyIncomeBeforeTaxes(GoodsType goodsType, int amount)
          Modifies the current incomeBeforeTaxes.
 void Player.modifySales(GoodsType goodsType, int amount)
          Modifies the current sales.
 int Market.paidForSale(GoodsType type)
          Determines the price paid for the sale of a single unit of a particular type of goods.
 int Tile.potential(GoodsType goodsType, UnitType unitType)
          The potential of this tile to produce a certain type of goods.
 void Market.putMarketData(GoodsType goodsType, MarketData data)
          Describe putMarketData method here.
 void Settlement.removeGoods(GoodsType type)
          Removes all Goods of the given type from the Settlement.
 Goods GoodsContainer.removeGoods(GoodsType type)
           
 void Colony.removeGoods(GoodsType type)
          Removes all Goods of the given type from the Settlement.
 void Settlement.removeGoods(GoodsType type, int amount)
          Removes a specified amount of a type of Goods from this Settlement.
 Goods GoodsContainer.removeGoods(GoodsType type, int amount)
          Removes the given amount of the given type of goods.
 void Colony.removeGoods(GoodsType type, int amount)
          Removes a specified amount of a type of Goods from this Settlement.
 void Player.resetArrears(GoodsType goodsType)
          Resets the arrears for this type of goods to zero.
 void Market.sell(GoodsType type, int amount, Player player)
          Sells an amount of a particular type of good with the proceeds of the sale being paid to a supplied player.
 void Market.sell(GoodsType type, int amount, Player player, int marketAccess)
          Sells an amount of a particular type of good with the proceeds of the sale being paid to a supplied player.
 void Player.setArrears(GoodsType goodsType)
          Sets the arrears for a type of goods.
 void UnitType.setExpertProduction(GoodsType newExpertProduction)
          Set the ExpertProduction value.
 void AbstractGoods.setType(GoodsType newType)
          Set the Type value.
 void PlayerExploredTile.setWantedGoods(GoodsType[] newWantedGoods)
           
 void IndianSettlement.setWantedGoods(int index, GoodsType type)
           
 void Unit.setWorkType(GoodsType type)
          Sets the type of goods this unit is producing in its current occupation.
static java.lang.String Goods.toString(GoodsType goodsType, int amount)
           
 int Resource.useQuantity(GoodsType goodsType, UnitType unitType, int potential)
          Reduces the available quantity by the bonus output of GoodsType.
 

Method parameters in net.sf.freecol.common.model with type arguments of type GoodsType
static void Goods.initialize(java.util.List<GoodsType> goodsList, int numberOfTypes)
          Initializes the important Types for quick reference - performed by Specification.java Should be softcoded as much as possible, and this should be amended later
 void TradeRoute.Stop.setCargo(java.util.ArrayList<GoodsType> cargo)
          Set the cargo values.
 

Constructors in net.sf.freecol.common.model with parameters of type GoodsType
AbstractGoods(GoodsType type, int amount)
          Creates a new AbstractGoods instance.
ExportData(GoodsType goodsType)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, boolean exported, int exportLevel)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, boolean exported, int lowLevel, int highLevel, int exportLevel)
          Creates a new ExportData instance.
ExportData(GoodsType goodsType, ExportData template)
          Creates a new ExportData instance.
Goods(Game game, Location location, GoodsType type, int amount)
          Creates a standard Goods-instance given the place where the goods is.
MarketData(GoodsType goodsType)
          Creates a new MarketData instance.
 

Uses of GoodsType in net.sf.freecol.server.ai
 

Methods in net.sf.freecol.server.ai that return GoodsType
 GoodsType ColonyPlan.getBuildingReqGoods()
           
 GoodsType WorkLocationPlan.getGoodsType()
          Gets the type of goods which should be produced at the WorkLocation.
 GoodsType ProductionCache.Entry.getGoodsType()
           
 GoodsType GoodsWish.getGoodsType()
          Returns the type of unit needed for releasing this wish.
 GoodsType ColonyPlan.getPrimaryRawMaterial()
           
 GoodsType ColonyPlan.getSecondaryRawMaterial()
           
 

Methods in net.sf.freecol.server.ai that return types with arguments of type GoodsType
 java.util.List<GoodsType> ColonyProfile.getPreferredProduction()
          Get the PreferredProduction value.
 

Methods in net.sf.freecol.server.ai with parameters of type GoodsType
 void ColonyPlan.adjustProductionAndManufactureFor(GoodsType rawMat, GoodsType producedGoods)
           
static Unit AIColony.bestUnitForWorkLocation(java.util.Collection<Unit> units, WorkLocation workLocation, GoodsType goodsType)
           
 int AIColony.getAvailableGoods(GoodsType goodsType)
          Returns the available amount of the GoodsType given.
 java.util.List<ProductionCache.Entry> ProductionCache.getEntries(GoodsType goodsType)
           
 int WorkLocationPlan.getProductionOf(GoodsType goodsType)
          Gets the production of the given type of goods according to this WorkLocationPlan.
 int ColonyPlan.getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods according to this plan.
 void WorkLocationPlan.setGoodsType(GoodsType goodsType)
          Sets the type of goods to be produced at the WorkLocation.
 

Method parameters in net.sf.freecol.server.ai with type arguments of type GoodsType
 java.util.List<ProductionCache.Entry> ProductionCache.getEntries(java.util.List<GoodsType> goodsTypes)
           
 java.util.List<ProductionCache.Entry> ProductionCache.getEntries(java.util.List<GoodsType> goodsTypes, boolean useMarketValues)
           
 void ColonyProfile.setPreferredProduction(java.util.List<GoodsType> newPreferredProduction)
          Set the PreferredProduction value.
 

Constructors in net.sf.freecol.server.ai with parameters of type GoodsType
AIGoods(AIMain aiMain, Location location, GoodsType type, int amount, Location destination)
          Creates a new AIGoods.
ColonyPlan.Production(ColonyTile ct, GoodsType gt)
           
GoodsWish(AIMain aiMain, Location destination, int value, GoodsType goodsType)
          Creates a new GoodsWish, using a standard request amount of 100.
GoodsWish(AIMain aiMain, Location destination, int value, int amountRequested, GoodsType goodsType)
          Creates a new GoodsWish.
ProductionCache.Entry(GoodsType g, WorkLocation w, Unit u)
           
WorkLocationPlan(AIMain aiMain, WorkLocation workLocation, GoodsType goodsType)
          Creates a new WorkLocationPlan.
 

Constructor parameters in net.sf.freecol.server.ai with type arguments of type GoodsType
ColonyProfile(ColonyProfile.ProfileType type, java.util.List<GoodsType> production)
           
 

Uses of GoodsType in net.sf.freecol.server.ai.mission
 

Methods in net.sf.freecol.server.ai.mission with parameters of type GoodsType
 boolean Mission.buyGoods(Connection connection, Unit carrier, GoodsType goodsType, int amount)
           
 AIGoods TransportMission.buyGoodsInEurope(Connection connection, GoodsType type, int amount, Location destination)
          Buys the given cargo.