net.sf.freecol.server.ai
Class ProductionCache
java.lang.Object
net.sf.freecol.server.ai.ProductionCache
public class ProductionCache
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductionCache
public ProductionCache(Colony colony)
getUnits
public java.util.Set<Unit> getUnits()
getUnitCount
public int getUnitCount()
getUnitCount
public int getUnitCount(BuildingType buildingType)
decrementUnitCount
public int decrementUnitCount(BuildingType buildingType)
getAssigned
public java.util.List<ProductionCache.Entry> getAssigned()
getReserved
public java.util.List<ProductionCache.Entry> getReserved()
getEntries
public java.util.List<ProductionCache.Entry> getEntries(GoodsType goodsType)
getEntries
public java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes)
getEntries
public java.util.List<ProductionCache.Entry> getEntries(java.util.List<GoodsType> goodsTypes,
boolean useMarketValues)
assign
public void assign(ProductionCache.Entry entry)
removeEntries
public static java.util.List<ProductionCache.Entry> removeEntries(Unit unit,
WorkLocation workLocation,
java.util.List<ProductionCache.Entry> entryList)